Enable versioning of assets in production
This commit is contained in:
parent
052f4dd521
commit
d192b04aef
4 changed files with 84 additions and 9 deletions
|
@ -13,13 +13,15 @@ Encore
|
|||
.enableSourceMaps(!Encore.isProduction())
|
||||
|
||||
if (Encore.isProduction()) {
|
||||
Encore.addPlugin(new PurgecssPlugin({
|
||||
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || [],
|
||||
paths: () => glob.sync([
|
||||
'assets/**/*.vue',
|
||||
'source/**/*.{md,twig}'
|
||||
])
|
||||
}))
|
||||
Encore
|
||||
.enableVersioning()
|
||||
.addPlugin(new PurgecssPlugin({
|
||||
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || [],
|
||||
paths: () => glob.sync([
|
||||
'assets/**/*.vue',
|
||||
'source/**/*.{md,twig}'
|
||||
])
|
||||
}))
|
||||
}
|
||||
|
||||
module.exports = Encore.getWebpackConfig()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue