Correctif theme
This commit is contained in:
@ -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')
|
||||
|
Reference in New Issue
Block a user