From e2b9fdefabd9a1018da717fedfeba98144f19a78 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Wed, 16 Mar 2022 23:54:35 +0800 Subject: [PATCH] chore: remove hash in htmlwebpackplugin hash will make sw not work. cache controller should ensure with filename's contenthash --- web/build/webpack.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/build/webpack.config.ts b/web/build/webpack.config.ts index a0f0a5bb..dbe99536 100644 --- a/web/build/webpack.config.ts +++ b/web/build/webpack.config.ts @@ -55,7 +55,7 @@ const plugins: Configuration['plugins'] = [ new HtmlWebpackPlugin({ title: 'TailChat', inject: true, - hash: true, + hash: false, favicon: path.resolve(ROOT_PATH, './assets/images/logo.svg'), template: path.resolve(ROOT_PATH, './assets/template.html'), preloadImage: `data:image/svg+xml;base64,${Buffer.from(