maj manifest
Some checks are pending
Cadoles/hydra-sql/pipeline/pr-develop Build started...
Cadoles/hydra-sql/pipeline/head This commit looks good

This commit is contained in:
2023-01-10 17:03:00 +01:00
parent 744b3c3c06
commit 4b360cc2a0
20 changed files with 191 additions and 62 deletions

View File

@ -6,12 +6,13 @@ if (!Encore.isRuntimeEnvironmentConfigured()) {
Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');
}
// Definition de AppConfig
Encore
// directory where compiled assets will be stored
.setOutputPath('public/build/app')
.setOutputPath('public/build/app/')
// public path used by the web server to access the output path
.setPublicPath('/build/app')
// only needed for CDN's or subdirectory deploy
// only needed for CDN's or sub-directory deploy
//.setManifestKeyPrefix('build/')
/*
@ -23,6 +24,7 @@ Encore
.addEntry('app', './assets/app.js')
.addEntry('bootstrap-css', './assets/styles/bootstrap.scss')
.addEntry('bootstrap-js', './assets/app-bootstrap.js')
// enables the Symfony UX Stimulus bridge (used in assets/bootstrap.js)
.enableStimulusBridge('./assets/controllers.json')
@ -44,34 +46,21 @@ Encore
.enableBuildNotifications()
.enableSourceMaps(!Encore.isProduction())
// enables hashed filenames (e.g. app.abc123.css)
.enableVersioning(Encore.isProduction())
.enableVersioning(!Encore.isProduction())
// configure Babel
// .configureBabel((config) => {
// config.plugins.push('@babel/a-babel-plugin');
// })
// enables and configure @babel/preset-env polyfills
.configureBabelPresetEnv((config) => {
config.useBuiltIns = 'usage';
config.corejs = '3.23';
.configureBabel((config) => {
config.plugins.push('@babel/plugin-proposal-class-properties');
})
// enables Sass/SCSS support
// enables @babel/preset-env polyfills
.configureBabelPresetEnv((config) => {
config.useBuiltIns = 'usage';
config.corejs = 3;
})
.enablePostCssLoader()
.autoProvidejQuery()
.enableSassLoader()
// uncomment if you use TypeScript
//.enableTypeScriptLoader()
// uncomment if you use React
//.enableReactPreset()
// uncomment to get integrity="..." attributes on your script & link tags
// requires WebpackEncoreBundle 1.4 or higher
//.enableIntegrityHashes(Encore.isProduction())
// uncomment if you're having problems with a jQuery plugin
//.autoProvidejQuery()
// build the first configuration
const appConfig = Encore.getWebpackConfig();
// Set a unique name for the config (needed later!)
@ -79,7 +68,8 @@ Encore
// reset Encore to build the second config
Encore.reset();
;
// Definition de themeConfig
Encore
// directory where compiled assets will be stored
.setOutputPath('public/build/theme/')
@ -103,4 +93,4 @@ Encore
;
// export the final configuration as an array of multiple configurations
module.exports = [appConfig, themeConfig];
module.exports = [appConfig, themeConfig];