Correctif theme

This commit is contained in:
2024-10-22 14:57:45 +02:00
committed by Gauthier DUPONT
parent 642f56dafa
commit fe12b4fc69
3 changed files with 14 additions and 4 deletions

View File

@ -6,14 +6,16 @@ if (!Encore.isRuntimeEnvironmentConfigured()) {
Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');
}
const basePath = process.env.BASE_PATH || ''
// Definition de AppConfig
Encore
// directory where compiled assets will be stored
.setOutputPath('public/build/app/')
// public path used by the web server to access the output path
.setPublicPath('/build/app')
.setPublicPath(basePath + '/build/app')
// only needed for CDN's or sub-directory deploy
//.setManifestKeyPrefix('build/')
.setManifestKeyPrefix('build/app')
/*
* ENTRY CONFIG
@ -71,7 +73,10 @@ Encore
// directory where compiled assets will be stored
.setOutputPath('public/build/theme/')
// public path used by the web server to access the output path
.setPublicPath('/build/theme')
.setPublicPath(basePath + '/build/theme')
// only needed for CDN's or sub-directory deploy
.setManifestKeyPrefix('build/theme')
.addEntry('theme','./assets/theme-entrypoint.js')
.addEntry('bootstrap-css', './assets/styles/bootstrap.scss')
.addEntry('bootstrap-js', './assets/app-bootstrap.js')