mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +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": {
|
"symfony/webpack-encore-bundle": {
|
||||||
"version": "1.15",
|
"version": "1.16",
|
||||||
"recipe": {
|
"recipe": {
|
||||||
"repo": "github.com/symfony/recipes",
|
"repo": "github.com/symfony/recipes",
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"version": "1.10",
|
"version": "1.10",
|
||||||
"ref": "2e458cc7e6f1df1dad890eb104b81e4f302c9bd4"
|
"ref": "5878c7c28468ca0fdce2497a04cfc66bab0dc3ef"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"assets/app.js",
|
"assets/app.js",
|
||||||
|
|
|
@ -39,7 +39,7 @@ Encore
|
||||||
.setOutputPath('public/build/')
|
.setOutputPath('public/build/')
|
||||||
// public path used by the web server to access the output path
|
// public path used by the web server to access the output path
|
||||||
.setPublicPath('/build')
|
.setPublicPath('/build')
|
||||||
// only needed for CDN's or sub-directory deploy
|
// only needed for CDN's or subdirectory deploy
|
||||||
//.setManifestKeyPrefix('build/')
|
//.setManifestKeyPrefix('build/')
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -87,14 +87,15 @@ Encore
|
||||||
//.enableVersioning(Encore.isProduction())
|
//.enableVersioning(Encore.isProduction())
|
||||||
.enableVersioning()
|
.enableVersioning()
|
||||||
|
|
||||||
.configureBabel((config) => {
|
// configure Babel
|
||||||
config.plugins.push('@babel/plugin-proposal-class-properties');
|
// .configureBabel((config) => {
|
||||||
})
|
// config.plugins.push('@babel/a-babel-plugin');
|
||||||
|
// })
|
||||||
|
|
||||||
// enables @babel/preset-env polyfills
|
// enables and configure @babel/preset-env polyfills
|
||||||
.configureBabelPresetEnv((config) => {
|
.configureBabelPresetEnv((config) => {
|
||||||
config.useBuiltIns = 'usage';
|
config.useBuiltIns = 'usage';
|
||||||
config.corejs = 3;
|
config.corejs = '3.23';
|
||||||
})
|
})
|
||||||
// enables Sass/SCSS support
|
// enables Sass/SCSS support
|
||||||
//.enableSassLoader()
|
//.enableSassLoader()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue