Skip to content

Commit

Permalink
fix: dev cache
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster1963 committed Dec 9, 2024
1 parent 05bb295 commit a448e5e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,17 @@ export default defineConfig({
changeOrigin: true,
},
},
headers: {
"Cache-Control": "no-store",
Pragma: "no-cache",
},
},
build: {
rollupOptions: {
output: {
entryFileNames: `assets/[name].[hash].js`,
chunkFileNames: `assets/[name].[hash].js`,
assetFileNames: `assets/[name].[hash].[ext]`,
manualChunks(id) {
if (id.includes("node_modules")) {
return id
Expand Down

0 comments on commit a448e5e

Please sign in to comment.