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();