Skip to content

Commit 6fcf62d

Browse files
committed
runs build script before deploying to gh-pages
1 parent ffc712e commit 6fcf62d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"build": "webpack --config webpack.build.js --bail -p",
88
"dev": "webpack & webpack-dev-server --config webpack.config.js --history-api-fallback --hot --inline --progress",
99
"test": "echo \"Error: no test specified\" && exit 1",
10-
"deploy": "gh-pages -d dist"
10+
"deploy": "npm run build && gh-pages -d dist"
1111
},
1212
"private": true,
1313
"dependencies": {
@@ -41,7 +41,7 @@
4141
"eslint-plugin-jsx-a11y": "^1.4.2",
4242
"eslint-plugin-react": "^5.1.1",
4343
"file-loader": "^0.8.5",
44-
"gh-pages": "^0.11.0",
44+
"gh-pages": "^0.11.0",
4545
"html-webpack-plugin": "^2.20.0",
4646
"json-loader": "^0.5.4",
4747
"react-hot-loader": "^1.3.0",

0 commit comments

Comments
 (0)