Merged in bugfix/fix-HMR-with-gql-schema-gen (pull request #424)

Ignore minified GQL schema in vite watch
This commit is contained in:
Elia Bieri 2024-11-13 14:45:11 +00:00
commit 485ce827b4
1 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,10 @@ export default defineConfig(({ mode }) => {
host: true,
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"],
},
},
resolve: {
alias: {