Update build tools, configure webpack polling
This commit is contained in:
+8
-3
@@ -23,7 +23,10 @@ Encore
|
||||
images: 'images/[name].[ext]'
|
||||
})
|
||||
.configureBabel(function (babelConfig) {
|
||||
babelConfig.plugins = [ 'transform-object-rest-spread', 'syntax-dynamic-import' ]
|
||||
babelConfig.plugins = [ '@babel/plugin-proposal-object-rest-spread', '@babel/plugin-syntax-dynamic-import' ]
|
||||
})
|
||||
.configureWatchOptions(function (options) {
|
||||
options.poll = 250;
|
||||
});
|
||||
|
||||
const EpThemeConfig = Encore.getWebpackConfig();
|
||||
@@ -53,9 +56,11 @@ Encore
|
||||
images: 'images/[name].[ext]'
|
||||
})
|
||||
.configureBabel(function (babelConfig) {
|
||||
babelConfig.plugins = [ 'transform-object-rest-spread', 'syntax-dynamic-import' ]
|
||||
babelConfig.plugins = [ '@babel/plugin-proposal-object-rest-spread', '@babel/plugin-syntax-dynamic-import' ]
|
||||
})
|
||||
;
|
||||
.configureWatchOptions(function (options) {
|
||||
options.poll = 250;
|
||||
});
|
||||
|
||||
const EpEventsConfig = Encore.getWebpackConfig();
|
||||
EpEventsConfig.name = 'EpEventsConfig';
|
||||
|
||||
Reference in New Issue
Block a user