Skip to content

Commit 19bf23f

Browse files
committed
add 404 redirect for surge and deploy script
1 parent 209560f commit 19bf23f

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

404.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Routing Example App</title>
6+
</head>
7+
<body>
8+
<div id="app"></div>
9+
<script src="dist/build.js"></script>
10+
</body>
11+
</html>

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
"private": true,
66
"scripts": {
77
"dev": "webpack-dev-server --inline --hot",
8-
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
8+
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
9+
"predeploy": "npm run build",
10+
"deploy": "surge --project . --domain vue-2-simple-routing-example.surge.sh"
911
},
1012
"dependencies": {
11-
"vue": "^2.0.0-alpha.2"
13+
"vue": "^2.0.0-beta.1"
1214
},
1315
"devDependencies": {
1416
"babel-core": "^6.0.0",
@@ -17,6 +19,7 @@
1719
"cross-env": "^1.0.6",
1820
"css-loader": "^0.23.1",
1921
"file-loader": "^0.8.4",
22+
"surge": "^0.18.0",
2023
"vue-loader": "^9.0.0",
2124
"webpack": "^1.12.2",
2225
"webpack-dev-server": "^1.12.0"

0 commit comments

Comments
 (0)