From bf7b659e89a918829c130c2ba2ff636936a8dda8 Mon Sep 17 00:00:00 2001 From: chaptergy Date: Sun, 17 Oct 2021 19:15:35 +0200 Subject: [PATCH] Adds cache busting to js bundles as well --- frontend/webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/webpack.config.js b/frontend/webpack.config.js index df0f1c14..01a09dab 100644 --- a/frontend/webpack.config.js +++ b/frontend/webpack.config.js @@ -13,8 +13,8 @@ module.exports = { }, output: { path: path.resolve(__dirname, 'dist'), - filename: 'js/[name].bundle.js', - chunkFilename: 'js/[name].bundle.[id].js', + filename: `js/[name].bundle.js?v=${PACKAGE.version}`, + chunkFilename: `js/[name].bundle.[id].js?v=${PACKAGE.version}`, publicPath: '/' }, resolve: {