Updated webpack-encore recipe

This commit is contained in:
Jan Böhmer 2022-10-22 22:06:27 +02:00
parent 330f6b53ce
commit 6f7111f572
2 changed files with 9 additions and 8 deletions

View file

@ -39,7 +39,7 @@ Encore
.setOutputPath('public/build/')
// public path used by the web server to access the output path
.setPublicPath('/build')
// only needed for CDN's or sub-directory deploy
// only needed for CDN's or subdirectory deploy
//.setManifestKeyPrefix('build/')
/**
@ -87,14 +87,15 @@ Encore
//.enableVersioning(Encore.isProduction())
.enableVersioning()
.configureBabel((config) => {
config.plugins.push('@babel/plugin-proposal-class-properties');
})
// configure Babel
// .configureBabel((config) => {
// config.plugins.push('@babel/a-babel-plugin');
// })
// enables @babel/preset-env polyfills
// enables and configure @babel/preset-env polyfills
.configureBabelPresetEnv((config) => {
config.useBuiltIns = 'usage';
config.corejs = 3;
config.corejs = '3.23';
})
// enables Sass/SCSS support
//.enableSassLoader()