From 85bdbdb721153eaf04f7cbf2ed2632ae6c02cdaa Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford Date: Wed, 2 Nov 2016 10:39:10 -0400 Subject: [PATCH] Windows compat: Tell webpack-dev-server to poll When running on Windows, Webpack seems to more reliably notice altered files when running in polling mode. We already use the `--watch-poll` argument in the `watch` script, but this change adds equivalent settings to the config used in the `start` script by `webpack-dev-server`. --- webpack.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index c26c81a..34922e9 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -4,7 +4,14 @@ var webpack = require('webpack'); var base = { devServer: { contentBase: path.resolve(__dirname, 'playground'), - host: '0.0.0.0' + host: '0.0.0.0', + watchOptions: { + aggregateTimeout: 300, + poll: 1000 + }, + stats: { + colors: true + } }, module: { loaders: [