From 7320f30ab869e82d7ba4d1d99b94023e849ae660 Mon Sep 17 00:00:00 2001 From: zombieFox Date: Sat, 21 Aug 2021 12:35:37 +0100 Subject: [PATCH] add css hash to build files --- webpack.prod.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/webpack.prod.js b/webpack.prod.js index e1d8d461..485e27d1 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -18,8 +18,12 @@ module.exports = merge(common, { minify: CssMinimizerPlugin.cleanCssMinify }), new TerserPlugin({ - parallel: true, - extractComments: false + terserOptions: { + format: { + comments: false, + }, + }, + extractComments: false, }) ] }, @@ -30,7 +34,9 @@ module.exports = merge(common, { }], }, plugins: [ - new MiniCssExtractPlugin(), + new MiniCssExtractPlugin({ + filename: '[name].[contenthash].css' + }), new ZipPlugin({ path: path.resolve(__dirname, 'dist/extension'), filename: name + '_' + version + '.zip'