Skip to content

Commit

Permalink
Merge pull request #2961 from vector-im/rav/build_hash_in_filename
Browse files Browse the repository at this point in the history
Put parent build hash in webpack output filenames
  • Loading branch information
dbkr committed Jan 17, 2017
2 parents 6b02bf8 + b3bff92 commit 86b6612
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -79,7 +80,7 @@ module.exports = {
}),

new ExtractTextPlugin(
"[name].[contenthash].css",
"[hash]/[name].css",
{
allChunks: true
}
Expand Down

0 comments on commit 86b6612

Please sign in to comment.