diff --git a/dist/server/middleware.js b/dist/server/middleware.js index 2101e2319c4..8ab9fb4d554 100644 --- a/dist/server/middleware.js +++ b/dist/server/middleware.js @@ -4,6 +4,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); +var _extends2 = require('babel-runtime/helpers/extends'); + +var _extends3 = _interopRequireDefault(_extends2); + exports.default = function (configDir) { // Build the webpack configuration using the `getBaseConfig` // custom `.babelrc` file and `webpack.config.js` files @@ -17,11 +21,11 @@ exports.default = function (configDir) { } var compiler = (0, _webpack2.default)(config); - var devMiddlewareOptions = { + var devMiddlewareOptions = (0, _extends3.default)({ noInfo: true, publicPath: config.output.publicPath, watchOptions: config.watchOptions || {} - }; + }, config.devServer); var router = new _express.Router(); router.use((0, _webpackDevMiddleware2.default)(compiler, devMiddlewareOptions)); diff --git a/src/server/index.html.js b/src/server/index.html.js index bff4b4f9eb1..d6aa6b882b0 100644 --- a/src/server/index.html.js +++ b/src/server/index.html.js @@ -39,6 +39,7 @@ export default function (data) { +