From c9052b9691f40ae20566d61b56d859a6db9d2727 Mon Sep 17 00:00:00 2001 From: Elia Bieri Date: Wed, 13 Nov 2024 15:23:25 +0100 Subject: [PATCH] Add remark about limitations of approach --- client/vite.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/client/vite.config.ts b/client/vite.config.ts index b4946740..5b5d7d1c 100644 --- a/client/vite.config.ts +++ b/client/vite.config.ts @@ -27,6 +27,7 @@ export default defineConfig(({ mode }) => { port: 5173, strictPort: true, watch: { + // This fixes HMR but leads to schema changes not being taken into account unless the page is refreshed ignored: ["**/gql/dist/minifiedSchema.json"], }, },