Skip to content

Commit 5752ffc

Browse files
authored
Merge pull request #3161 from shockey/ft/dev-server-watch
Dev server: remove 'watch' call, fix HMR
2 parents 01124b0 + 2bc6c45 commit 5752ffc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"build-core": "webpack --config webpack-dist.config.js --colors",
2020
"build-standalone": "webpack --config webpack-dist-standalone.config.js --colors",
2121
"predev": "npm install",
22-
"dev": "npm-run-all --parallel hot-server watch open-localhost",
22+
"dev": "npm-run-all --parallel hot-server open-localhost",
2323
"watch": "webpack --config webpack-watch.config.js --watch --progress",
2424
"open-localhost": "node -e 'require(\"open\")(\"http://localhost:3200\")'",
2525
"hot-server": "webpack-dev-server --host 0.0.0.0 --config webpack-hot-dev-server.config.js --inline --hot --progress --content-base dev-helpers/",

webpack-hot-dev-server.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ module.exports = require("./make-webpack-config")({
1010
devtool: "eval",
1111
entry: {
1212
'swagger-ui-bundle': [
13+
'webpack/hot/dev-server',
1314
'babel-polyfill',
14-
'./src/core/index.js'
15+
'./src/core/index.js',
1516
],
1617
'swagger-ui-standalone-preset': [
17-
'./src/standalone/index.js'
18+
'webpack/hot/dev-server',
19+
'./src/standalone/index.js',
1820
]
1921
},
2022
output: {

0 commit comments

Comments
 (0)