Enable webpack polling

This commit is contained in:
Björn Fromme
2020-04-17 13:52:26 +02:00
parent 5e14f1a6a8
commit 140eb95da4
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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": {
+2 -1
View File
@@ -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();