Move HMR to dev task only (#182)

This commit is contained in:
Mihira Jayasekera 2019-06-03 15:19:53 -07:00 committed by Shawn Erquhart
parent d519cde1af
commit 501e1bb4dd
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
"lint": "eslint src",
"start": "run-p start:**",
"start:hugo": "hugo -d ../dist -s site -vw",
"start:webpack": "webpack-dev-server --config webpack.dev.js",
"start:webpack": "webpack-dev-server --config webpack.dev.js --hot",
"preview": "run-p preview:**",
"preview:hugo": "npm run start:hugo -- -D -F",
"preview:webpack": "npm run start:webpack",
@ -17,7 +17,7 @@
"build:preview": "npm run build:webpack && npm run build:hugo:preview",
"build:hugo": "hugo -d ../dist -s site -v",
"build:hugo:preview": "npm run build:hugo -- -D -F",
"build:webpack": "cross-env NODE_ENV=production webpack --config webpack.prod.js --hot --inline"
"build:webpack": "cross-env NODE_ENV=production webpack --config webpack.prod.js"
},
"author": "",
"license": "MIT",