Merge pull request #2961 from vector-im/rav/build_hash_in_filename
Put parent build hash in webpack output filenames
This commit is contained in:
commit
86b66120d0
|
@ -40,7 +40,8 @@ module.exports = {
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: path.join(__dirname, "webapp"),
|
path: path.join(__dirname, "webapp"),
|
||||||
filename: "[name].[chunkhash].js",
|
filename: "[hash]/[name].js",
|
||||||
|
chunkFilename: "[hash]/[name].js",
|
||||||
devtoolModuleFilenameTemplate: function(info) {
|
devtoolModuleFilenameTemplate: function(info) {
|
||||||
// Reading input source maps gives only relative paths here for
|
// Reading input source maps gives only relative paths here for
|
||||||
// everything. Until I figure out how to fix this, this is a
|
// everything. Until I figure out how to fix this, this is a
|
||||||
|
@ -79,7 +80,7 @@ module.exports = {
|
||||||
}),
|
}),
|
||||||
|
|
||||||
new ExtractTextPlugin(
|
new ExtractTextPlugin(
|
||||||
"[name].[contenthash].css",
|
"[hash]/[name].css",
|
||||||
{
|
{
|
||||||
allChunks: true
|
allChunks: true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue