Skip to content

Commit

Permalink
fix(dev): trop de fichiers observés lors du task dev
Browse files Browse the repository at this point in the history
  • Loading branch information
bachrc committed Oct 20, 2024
1 parent 17811dd commit 8b97c11
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
26 changes: 13 additions & 13 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
8 changes: 7 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
});

0 comments on commit 8b97c11

Please sign in to comment.