Update and configure Webpack Encore

This commit is contained in:
Paul Nicoué 2022-11-22 12:42:31 +01:00
parent 9592df66b9
commit c98a997407
3 changed files with 1272 additions and 516 deletions

1781
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -7,7 +7,7 @@
],
"devDependencies": {
"@splidejs/splide": "^4.1.4",
"@symfony/webpack-encore": "^3.1.0",
"@symfony/webpack-encore": "^4.1.2",
"autoprefixer": "^10.4.13",
"core-js": "^3.26.1",
"postcss-loader": "^7.0.1",

View file

@ -29,9 +29,6 @@ Encore
.cleanupOutputBeforeBuild()
.enableBuildNotifications()
.enableSourceMaps(!Encore.isProduction())
.configureBabel((config) => {
config.plugins.push('@babel/plugin-proposal-class-properties');
})
.configureBabelPresetEnv((config) => {
config.useBuiltIns = 'usage';
config.corejs = 3;