Skip to content

Commit f0ff2cf

Browse files
author
ozelot379
committed
cache hash parameter
1 parent deba1ce commit f0ff2cf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎webpack.config.webapp.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = {
2929
test: /worker\.js$/,
3030
loader: "worker-loader",
3131
options: {
32-
name: "[name].[contenthash].[ext]"
32+
name: "[name].[ext]?h=[contenthash]"
3333
}
3434
}
3535
]
@@ -38,7 +38,7 @@ module.exports = {
3838
minimizer: (isDebug ? [] : [new TerserJSPlugin({}), new OptimizeCSSAssetsPlugin()]),
3939
},
4040
output: {
41-
filename: "[name].[contenthash].js",
41+
filename: "[name].js?h=[contenthash]",
4242
path: __dirname + "/dist/webapp",
4343
globalObject: "this" // Fix worker
4444
},
@@ -56,7 +56,7 @@ module.exports = {
5656
template: "./src/webapp/html/index.html"
5757
}),
5858
new MiniCssExtractPlugin({
59-
filename: "[name].[contenthash].css",
59+
filename: "[name].css?h=[contenthash]",
6060
}),
6161
new FaviconsWebpackPlugin({
6262
devMode: "webapp",

0 commit comments

Comments
 (0)