feat : update dev environment
Some checks failed
Cadoles/hydra-sql/pipeline/pr-develop There was a failure building this commit

This commit is contained in:
2025-04-17 12:54:13 +02:00
committed by Gauthier DUPONT
parent 0c0667fb33
commit 11468596dd
24 changed files with 85 additions and 920 deletions

View File

@ -8,6 +8,9 @@ if (!Encore.isRuntimeEnvironmentConfigured()) {
const basePath = process.env.BASE_PATH || ''
const imagesPath = Encore.isProduction() ? 'images/[path][name].[hash:8].[ext]' : 'images/[path][name].[ext]';
const fontsPath = Encore.isProduction() ? 'fonts/[path][name].[hash:8].[ext]' : 'fonts/[path][name].[ext]';
// Definition de AppConfig
Encore
// directory where compiled assets will be stored
@ -28,6 +31,22 @@ Encore
.addEntry('bootstrap-js', './assets/app-bootstrap.js')
.addEntry('theme','./assets/theme-entrypoint.js')
.copyFiles({
from: './assets/images',
to: imagesPath,
})
.copyFiles({
from: './assets/fonts',
to: fontsPath,
})
.configureImageRule({
type: 'asset',
})
.configureFontRule({
type: 'asset',
})
// When enabled, Webpack "splits" your files into smaller pieces for greater optimization.
.splitEntryChunks()
@ -46,7 +65,7 @@ Encore
.enableBuildNotifications()
.enableSourceMaps(!Encore.isProduction())
// enables hashed filenames (e.g. app.abc123.css)
.enableVersioning(!Encore.isProduction())
.enableVersioning(Encore.isProduction())
.configureBabel((config) => {
config.plugins.push('@babel/plugin-transform-class-properties');