compile assets with hash after filename #125 (#126)

This commit is contained in:
Simon Schaufelberger
2018-02-03 17:52:26 +01:00
committed by Kevin Papst
parent 7deaba8368
commit 974cee0b6e
18 changed files with 29 additions and 21 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 121 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 434 KiB

After

Width:  |  Height:  |  Size: 434 KiB

View File

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 106 KiB

View File

@@ -1,18 +1,18 @@
{
"build/app.css": "/build/app.7d687ca87bc6b12a62e3f59dde7e7fbc.css",
"build/app.js": "/build/app.fade3c0d5d1d726e7607.js",
"build/fonts/fontawesome-webfont.eot": "/build/fonts/fontawesome-webfont.674f50d2.eot",
"build/fonts/fontawesome-webfont.ttf?v=4.7.0": "/build/fonts/fontawesome-webfont.b06871f2.ttf",
"build/fonts/fontawesome-webfont.woff2?v=4.7.0": "/build/fonts/fontawesome-webfont.af7ae505.woff2",
"build/fonts/fontawesome-webfont.woff?v=4.7.0": "/build/fonts/fontawesome-webfont.fee66e71.woff",
"build/fonts/glyphicons-halflings-regular.eot": "/build/fonts/glyphicons-halflings-regular.f4769f9b.eot",
"build/fonts/glyphicons-halflings-regular.ttf": "/build/fonts/glyphicons-halflings-regular.e18bbf61.ttf",
"build/fonts/glyphicons-halflings-regular.woff": "/build/fonts/glyphicons-halflings-regular.fa277232.woff",
"build/fonts/glyphicons-halflings-regular.woff2": "/build/fonts/glyphicons-halflings-regular.448c34a5.woff2",
"build/images/blue.png": "/build/images/blue.96f8a905.png",
"build/images/blue@2x.png": "/build/images/blue@2x.2694acfd.png",
"build/images/boxed-bg.jpg": "/build/images/boxed-bg.7799dece.jpg",
"build/images/default_avatar.png": "/build/images/default_avatar.fc197350.png",
"build/images/fontawesome-webfont.svg?v=4.7.0": "/build/images/fontawesome-webfont.912ec66d.svg",
"build/images/glyphicons-halflings-regular.svg": "/build/images/glyphicons-halflings-regular.89889688.svg"
"build/app.css": "/build/app.css?b19d130b5e32fad86127dbeb1d5212e6",
"build/app.js": "/build/app.js?411ea6382536dd59a829",
"build/fonts/fontawesome-webfont.eot": "/build/fonts/fontawesome-webfont.eot?674f50d2",
"build/fonts/fontawesome-webfont.ttf?v=4.7.0": "/build/fonts/fontawesome-webfont.ttf?b06871f2",
"build/fonts/fontawesome-webfont.woff2?v=4.7.0": "/build/fonts/fontawesome-webfont.woff2?af7ae505",
"build/fonts/fontawesome-webfont.woff?v=4.7.0": "/build/fonts/fontawesome-webfont.woff?fee66e71",
"build/fonts/glyphicons-halflings-regular.eot": "/build/fonts/glyphicons-halflings-regular.eot?f4769f9b",
"build/fonts/glyphicons-halflings-regular.ttf": "/build/fonts/glyphicons-halflings-regular.ttf?e18bbf61",
"build/fonts/glyphicons-halflings-regular.woff": "/build/fonts/glyphicons-halflings-regular.woff?fa277232",
"build/fonts/glyphicons-halflings-regular.woff2": "/build/fonts/glyphicons-halflings-regular.woff2?448c34a5",
"build/images/blue.png": "/build/images/blue.png?96f8a905",
"build/images/blue@2x.png": "/build/images/blue@2x.png?2694acfd",
"build/images/boxed-bg.jpg": "/build/images/boxed-bg.jpg?7799dece",
"build/images/default_avatar.png": "/build/images/default_avatar.png?fc197350",
"build/images/fontawesome-webfont.svg?v=4.7.0": "/build/images/fontawesome-webfont.svg?912ec66d",
"build/images/glyphicons-halflings-regular.svg": "/build/images/glyphicons-halflings-regular.svg?89889688"
}

View File

@@ -35,6 +35,14 @@ Encore
.enableSassLoader(function(sassOptions) {}, {
resolveUrlLoader: false
})
// add hash after file name
.configureFilenames({
js: '[name].js?[chunkhash]',
css: '[name].css?[contenthash]',
images: 'images/[name].[ext]?[hash:8]',
fonts: 'fonts/[name].[ext]?[hash:8]'
})
;
module.exports = Encore.getWebpackConfig();