Skip to content

Commit bf7b659

Browse files
committed
Adds cache busting to js bundles as well
1 parent 725ba83 commit bf7b659

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)