From 4ab11c13ee5f65b13779834280c12594bd56fdc3 Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Mon, 3 Aug 2020 09:55:04 +1000 Subject: [PATCH] interface: version JS changes in webpack Also fixes a longstanding bug where the compiled JS would be written twice to the same file, causing the bundle to be twice as large as it needs to be. --- pkg/interface/config/webpack.prod.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/interface/config/webpack.prod.js b/pkg/interface/config/webpack.prod.js index 10525a526..3ed57ec09 100644 --- a/pkg/interface/config/webpack.prod.js +++ b/pkg/interface/config/webpack.prod.js @@ -56,8 +56,7 @@ module.exports = { // }), ], output: { - filename: 'index.js', - chunkFilename: 'index.js', + filename: 'index.[contenthash].js', path: path.resolve(__dirname, '../../arvo/app/landscape/js'), publicPath: '/' },