mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Updated webpack-encore recipe
This commit is contained in:
parent
330f6b53ce
commit
6f7111f572
2 changed files with 9 additions and 8 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue