Skip to content

Commit 040b45c

Browse files
authored
Merge pull request #1496 from jc21/fixes-cache-busting
Adds cache busting to js bundles as well
2 parents 8ece310 + bf7b659 commit 040b45c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ module.exports = {
1313
},
1414
output: {
1515
path: path.resolve(__dirname, 'dist'),
16-
filename: 'js/[name].bundle.js',
17-
chunkFilename: 'js/[name].bundle.[id].js',
16+
filename: `js/[name].bundle.js?v=${PACKAGE.version}`,
17+
chunkFilename: `js/[name].bundle.[id].js?v=${PACKAGE.version}`,
1818
publicPath: '/'
1919
},
2020
resolve: {

0 commit comments

Comments
 (0)