From ed792f7b140169188226641d497081cbfe4ebed0 Mon Sep 17 00:00:00 2001 From: Idan Gozlan Date: Sun, 27 Nov 2016 13:04:26 +0200 Subject: [PATCH] watchOptions Enable filewatching on Vagrant/VM --- webpack/webpack-dev-server.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/webpack/webpack-dev-server.js b/webpack/webpack-dev-server.js index bc95ade44..faa094527 100644 --- a/webpack/webpack-dev-server.js +++ b/webpack/webpack-dev-server.js @@ -17,6 +17,15 @@ var serverOptions = { publicPath: webpackConfig.output.publicPath, headers: {'Access-Control-Allow-Origin': '*'}, stats: {colors: true} + // COMMENT OUT FOR VAGRANT/VM USE (will enable file watching) + /*, + watchOptions: { + aggregateTimeout: 300, + poll: true, + ignored: /node_modules/ //will enable file watching without hitting high CPU/Memory Usage. Affecting only on WebPack that includes watchpack 1.1.0+ + } + */ + }; var app = new Express();