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
|
@ -757,12 +757,12 @@
|
|||
]
|
||||
},
|
||||
"symfony/webpack-encore-bundle": {
|
||||
"version": "1.15",
|
||||
"version": "1.16",
|
||||
"recipe": {
|
||||
"repo": "github.com/symfony/recipes",
|
||||
"branch": "main",
|
||||
"version": "1.10",
|
||||
"ref": "2e458cc7e6f1df1dad890eb104b81e4f302c9bd4"
|
||||
"ref": "5878c7c28468ca0fdce2497a04cfc66bab0dc3ef"
|
||||
},
|
||||
"files": [
|
||||
"assets/app.js",
|
||||
|
|
|
@ -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