feat : update dev environment
Some checks failed
Cadoles/hydra-sql/pipeline/pr-develop There was a failure building this commit
Some checks failed
Cadoles/hydra-sql/pipeline/pr-develop There was a failure building this commit
This commit is contained in:
@ -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');
|
||||
|
Reference in New Issue
Block a user