diff --git a/package.json b/package.json index c8c2881e..d93d5b5f 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "build-core": "webpack --config webpack-dist.config.js --colors", "build-standalone": "webpack --config webpack-dist-standalone.config.js --colors", "predev": "npm install", - "dev": "npm-run-all --parallel hot-server watch open-localhost", + "dev": "npm-run-all --parallel hot-server open-localhost", "watch": "webpack --config webpack-watch.config.js --watch --progress", "open-localhost": "node -e 'require(\"open\")(\"http://localhost:3200\")'", "hot-server": "webpack-dev-server --host 0.0.0.0 --config webpack-hot-dev-server.config.js --inline --hot --progress --content-base dev-helpers/", diff --git a/webpack-hot-dev-server.config.js b/webpack-hot-dev-server.config.js index 2d66a25d..adafeee2 100644 --- a/webpack-hot-dev-server.config.js +++ b/webpack-hot-dev-server.config.js @@ -10,11 +10,13 @@ module.exports = require("./make-webpack-config")({ devtool: "eval", entry: { 'swagger-ui-bundle': [ + 'webpack/hot/dev-server', 'babel-polyfill', - './src/core/index.js' + './src/core/index.js', ], 'swagger-ui-standalone-preset': [ - './src/standalone/index.js' + 'webpack/hot/dev-server', + './src/standalone/index.js', ] }, output: {