forked from matrix/element-web
add content hash to languages.json file using webpack file-loader
This commit is contained in:
parent
878190ba27
commit
070cc77e0f
|
@ -60,6 +60,20 @@ module.exports = {
|
||||||
use: "css-loader",
|
use: "css-loader",
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
// cache-bust languages.json file placed in
|
||||||
|
// riot-web/webapp/i18n during build by copy-res.js
|
||||||
|
test: /\.*languages.json$/,
|
||||||
|
type: "javascript/auto",
|
||||||
|
use: [
|
||||||
|
{
|
||||||
|
loader: 'file-loader',
|
||||||
|
options: {
|
||||||
|
name: 'i18n/[name].[hash:7].[ext]',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
test: /\.(gif|png|svg|ttf|xml|ico)$/,
|
test: /\.(gif|png|svg|ttf|xml|ico)$/,
|
||||||
// Use a content-based hash in the name so that we can set a long cache
|
// Use a content-based hash in the name so that we can set a long cache
|
||||||
|
|
Loading…
Reference in New Issue