Adjust compiled asset filenames
This commit is contained in:
committed by
Björn Fromme
parent
9fb201bd83
commit
e10d60b893
+3
-2
@@ -14,6 +14,7 @@ Encore
|
|||||||
.enableSassLoader()
|
.enableSassLoader()
|
||||||
.enableVueLoader()
|
.enableVueLoader()
|
||||||
.autoProvidejQuery()
|
.autoProvidejQuery()
|
||||||
|
.enableVersioning()
|
||||||
.enableSourceMaps(!Encore.isProduction())
|
.enableSourceMaps(!Encore.isProduction())
|
||||||
.cleanupOutputBeforeBuild()
|
.cleanupOutputBeforeBuild()
|
||||||
.enablePostCssLoader()
|
.enablePostCssLoader()
|
||||||
@@ -23,8 +24,8 @@ Encore
|
|||||||
{ from: './node_modules/leaflet/dist/images', to: 'images/[name].[ext]' },
|
{ from: './node_modules/leaflet/dist/images', to: 'images/[name].[ext]' },
|
||||||
])
|
])
|
||||||
.configureFilenames({
|
.configureFilenames({
|
||||||
js: 'js/[name].js',
|
js: 'js/[name].[contenthash].js',
|
||||||
css: 'css/[name].css',
|
css: 'css/[name].[contenthash].css',
|
||||||
})
|
})
|
||||||
.configureImageRule({
|
.configureImageRule({
|
||||||
filename: 'images/[name][ext]',
|
filename: 'images/[name][ext]',
|
||||||
|
|||||||
Reference in New Issue
Block a user