diff --git a/src/server/middleware.js b/src/server/middleware.js index bc9a90a9da38..7efc6634113c 100644 --- a/src/server/middleware.js +++ b/src/server/middleware.js @@ -25,6 +25,7 @@ export default function (configDir) { noInfo: true, publicPath: config.output.publicPath, watchOptions: config.watchOptions || {}, + ...config.devServer, }; const router = new Router();