diff --git a/nodemon.json b/nodemon.json index 092aa87b8..b6dd27cfe 100644 --- a/nodemon.json +++ b/nodemon.json @@ -9,6 +9,7 @@ "server", "Intl" ], + "legacyWatch": true, "env": { "NODE_ENV": "development" }, diff --git a/server/server.js b/server/server.js index c76e533fa..c9531a03c 100644 --- a/server/server.js +++ b/server/server.js @@ -17,7 +17,13 @@ const app = new Express(); // Run Webpack dev server in development mode if (process.env.NODE_ENV === 'development') { const compiler = webpack(config); - app.use(webpackDevMiddleware(compiler, { noInfo: true, publicPath: config.output.publicPath })); + app.use(webpackDevMiddleware(compiler, { + noInfo: true, + publicPath: config.output.publicPath, + watchOptions: { + poll: 1000, + }, + })); app.use(webpackHotMiddleware(compiler)); }