diff --git a/package.json b/package.json index 34dcd26..0e2d6dc 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", diff --git a/vite.config.ts b/vite.config.ts index 4406939..6efb4cd 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: [