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