diff options
Diffstat (limited to 'scripts/frontend/webpack_dev_server.js')
-rwxr-xr-x | scripts/frontend/webpack_dev_server.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/scripts/frontend/webpack_dev_server.js b/scripts/frontend/webpack_dev_server.js index a76e6dc024a..ae73c14b501 100755 --- a/scripts/frontend/webpack_dev_server.js +++ b/scripts/frontend/webpack_dev_server.js @@ -30,17 +30,15 @@ if (STATIC_MODE) { // run webpack through webpack-dev-server, optionally compiling a DLL to reduce memory else { - const watch = ['config/webpack.config.js']; + const watch = [ + 'config/webpack.config.js', + // ensure we refresh when running yarn install + 'node_modules/.yarn-integrity', + ]; // if utilizing the vendor DLL, we need to restart the process when dependency changes occur if (DLL_MODE) { - watch.push( - 'config/webpack.vendor.config.js', - // ensure we refresh when running yarn install - 'node_modules/.yarn-integrity', - 'package.json', - 'yarn.lock', - ); + watch.push('config/webpack.vendor.config.js', 'package.json', 'yarn.lock'); } nodemon({ exec: 'webpack-dev-server --config config/webpack.config.js', |