Skip to content

Commit a448e5e

Browse files
committed
fix: dev cache
1 parent 05bb295 commit a448e5e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

vite.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,17 @@ export default defineConfig({
3737
changeOrigin: true,
3838
},
3939
},
40+
headers: {
41+
"Cache-Control": "no-store",
42+
Pragma: "no-cache",
43+
},
4044
},
4145
build: {
4246
rollupOptions: {
4347
output: {
48+
entryFileNames: `assets/[name].[hash].js`,
49+
chunkFileNames: `assets/[name].[hash].js`,
50+
assetFileNames: `assets/[name].[hash].[ext]`,
4451
manualChunks(id) {
4552
if (id.includes("node_modules")) {
4653
return id

0 commit comments

Comments
 (0)