From 0aee297fb7820fd36f9df040195aff5ec56c6f98 Mon Sep 17 00:00:00 2001 From: John Doe Date: Wed, 27 Dec 2023 18:36:59 +0100 Subject: [PATCH 1/2] add preview script --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 34dcd266..0e2d6dc6 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ }, "scripts": { "start": "vite", + "preview": "vite preview", "build:web": "VITE_BUILD_TARGET=web ./script/build.sh", "build:ext": "VITE_BUILD_TARGET=extension ./script/build.sh", "build:firefox": "VITE_BUILD_PLATFORM=firefox ./script/build-firefox.sh", From 081e48461b5894d06b8ffd57869d799098f503f5 Mon Sep 17 00:00:00 2001 From: John Doe Date: Wed, 27 Dec 2023 18:37:11 +0100 Subject: [PATCH 2/2] add missing hash to the chunk filename --- vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 4406939c..6efb4cd5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -37,7 +37,7 @@ export default defineConfig(({ mode }) => { rollupOptions: { output: { entryFileNames: `assets/[name].js`, - chunkFileNames: `assets/[name].js`, + chunkFileNames: `assets/[name]-[hash].js`, assetFileNames: `assets/[name].[ext]`, manualChunks: { core: [