Skip to content

Commit 24ee64c

Browse files
authored
Merge pull request #183 from medyo/fix/chunk-hash
Fix/chunk hash
2 parents 43a1eb3 + 081e484 commit 24ee64c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
},
4343
"scripts": {
4444
"start": "vite",
45+
"preview": "vite preview",
4546
"build:web": "VITE_BUILD_TARGET=web ./script/build.sh",
4647
"build:ext": "VITE_BUILD_TARGET=extension ./script/build.sh",
4748
"build:firefox": "VITE_BUILD_PLATFORM=firefox ./script/build-firefox.sh",

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default defineConfig(({ mode }) => {
3737
rollupOptions: {
3838
output: {
3939
entryFileNames: `assets/[name].js`,
40-
chunkFileNames: `assets/[name].js`,
40+
chunkFileNames: `assets/[name]-[hash].js`,
4141
assetFileNames: `assets/[name].[ext]`,
4242
manualChunks: {
4343
core: [

0 commit comments

Comments
 (0)