Skip to content

Commit

Permalink
fix vite dev reload on navigate
Browse files Browse the repository at this point in the history
  • Loading branch information
rphlmr committed Mar 22, 2024
1 parent 0ebc1c1 commit 623f9c8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ export default defineConfig({
key: "./server/dev/key.pem",
cert: "./server/dev/cert.pem",
},
// https://github.com/remix-run/remix/discussions/8917#discussioncomment-8640023
warmup: {
clientFiles: [
"./app/entry.client.tsx",
"./app/root.tsx",
"./app/routes/**/*",
],
},
},
// https://github.com/remix-run/remix/discussions/8917#discussioncomment-8640023
optimizeDeps: {
include: ["./app/entry.client.tsx", "./app/root.tsx", "./app/routes/**/*"],
},
plugins: [
devServer({
Expand Down

0 comments on commit 623f9c8

Please sign in to comment.