generateur_v3/frontend/vite.config.js

24 lines
388 B
JavaScript
Raw Normal View History

2022-12-27 18:26:05 +01:00
import { sveltekit } from '@sveltejs/kit/vite';
/** @type {import('vite').UserConfig} */
const config = {
2023-01-27 21:41:08 +01:00
plugins: [sveltekit()],
2022-12-27 23:39:58 +01:00
2023-01-27 21:41:08 +01:00
css: {
preprocessorOptions: {
scss: {
additionalData: '@use "src/variables.scss" as *;'
}
}
},
2023-02-22 12:43:39 +01:00
test: {
globals: true,
2023-01-27 21:41:08 +01:00
2023-02-22 12:43:39 +01:00
environment: 'jsdom',
css: true,
},
2023-01-27 21:41:08 +01:00
optimizeDeps: { exclude: ['svelte-navigator'] }
2022-12-27 18:26:05 +01:00
};
export default config;