Merge pull request #2961 from vector-im/rav/build_hash_in_filename

Put parent build hash in webpack output filenames
pull/2965/head
David Baker 2017-01-17 09:58:27 +00:00 committed by GitHub
commit 86b66120d0
1 changed files with 3 additions and 2 deletions

View File

@ -40,7 +40,8 @@ module.exports = {
},
output: {
path: path.join(__dirname, "webapp"),
filename: "[name].[chunkhash].js",
filename: "[hash]/[name].js",
chunkFilename: "[hash]/[name].js",
devtoolModuleFilenameTemplate: function(info) {
// Reading input source maps gives only relative paths here for
// everything. Until I figure out how to fix this, this is a
@ -79,7 +80,7 @@ module.exports = {
}),
new ExtractTextPlugin(
"[name].[contenthash].css",
"[hash]/[name].css",
{
allChunks: true
}