From 8b97c116e347af66f00cbf2e5297047bc24cc199 Mon Sep 17 00:00:00 2001 From: bachrc Date: Sun, 20 Oct 2024 21:07:59 +0000 Subject: [PATCH] =?UTF-8?q?fix(dev):=20trop=20de=20fichiers=20observ=C3=A9?= =?UTF-8?q?s=20lors=20du=20task=20dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- svelte.config.js | 26 +++++++++++++------------- vite.config.ts | 8 +++++++- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/svelte.config.js b/svelte.config.js index 6f6a5d5..9c13ebd 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -3,22 +3,22 @@ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; /** @type {import('@sveltejs/kit').Config} */ const config = { - // Consult https://kit.svelte.dev/docs/integrations#preprocessors - // for more information about preprocessors - preprocess: vitePreprocess(), + // Consult https://kit.svelte.dev/docs/integrations#preprocessors + // for more information about preprocessors + preprocess: vitePreprocess(), - kit: { - // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list. - // If your environment is not supported, or you settled on a specific environment, switch out the adapter. - // See https://kit.svelte.dev/docs/adapters for more information about adapters. - adapter: adapter({ + kit: { + // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list. + // If your environment is not supported, or you settled on a specific environment, switch out the adapter. + // See https://kit.svelte.dev/docs/adapters for more information about adapters. + adapter: adapter({ pages: 'build', - assets: 'build', - fallback: undefined, - precompress: false, - strict: true + assets: 'build', + fallback: undefined, + precompress: false, + strict: true }) - } + } }; export default config; diff --git a/vite.config.ts b/vite.config.ts index bbf8c7d..c8842f0 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,5 +2,11 @@ import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; export default defineConfig({ - plugins: [sveltekit()] + plugins: [sveltekit()], + server: { + watch: { + useFsEvents: false, + usePolling: true + } + } });