From 140eb95da4921c9dba19c7566abe103d95ad7a48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Fri, 17 Apr 2020 13:52:26 +0200 Subject: [PATCH] Enable webpack polling --- package.json | 2 +- webpack.config.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a989fa94..4147395d 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "license": "WTFPL", "repository": "https://gitlab.com/dreipunktnull/ep_theme.git", "scripts": { - "dev": "./node_modules/.bin/encore dev --watch", + "dev": "./node_modules/.bin/encore dev --watch --watch-poll", "build": "./node_modules/.bin/encore production" }, "dependencies": { diff --git a/webpack.config.js b/webpack.config.js index 3e0c1fa7..915d1cd7 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -60,7 +60,8 @@ Encore babelConfig.plugins = [ '@babel/plugin-proposal-object-rest-spread', '@babel/plugin-syntax-dynamic-import' ] }) .configureWatchOptions(function (options) { - options.poll = 250; + options.poll = 500; + options.ignored = /node_modules/; }); const EpEventsConfig = Encore.getWebpackConfig();