2024-11-15 00:48:21 +00:00
|
|
|
import { paraglide } from "@inlang/paraglide-sveltekit/vite";
|
2023-05-15 04:08:30 +00:00
|
|
|
import { defineConfig } from 'vite';
|
2024-11-15 00:48:21 +00:00
|
|
|
import { sveltekit } from '@sveltejs/kit/vite';
|
2022-09-29 22:21:48 +00:00
|
|
|
|
2023-05-15 04:08:30 +00:00
|
|
|
export default defineConfig({
|
2023-10-17 09:28:53 +00:00
|
|
|
plugins: [
|
2024-11-15 00:48:21 +00:00
|
|
|
sveltekit(), paraglide({
|
|
|
|
|
project: "./project.inlang",
|
|
|
|
|
outdir: "./src/lib/paraglide"
|
|
|
|
|
}),
|
2023-10-17 09:28:53 +00:00
|
|
|
],
|
2024-11-07 20:18:50 +00:00
|
|
|
esbuild: {
|
|
|
|
|
target: 'es2022',
|
|
|
|
|
},
|
2023-06-30 22:08:45 +00:00
|
|
|
test: {
|
2024-09-13 19:11:41 +00:00
|
|
|
include: ['src/**/*.{test,spec}.{js,ts}'],
|
|
|
|
|
mockReset: true,
|
2023-10-16 02:41:14 +00:00
|
|
|
},
|
|
|
|
|
css: {
|
|
|
|
|
devSourcemap: true,
|
|
|
|
|
preprocessorOptions: {
|
|
|
|
|
postcss: {
|
|
|
|
|
additionalData: `
|
|
|
|
|
@custom-media --below_small (width < 400px);
|
|
|
|
|
@custom-media --below_med (width < 700px);
|
|
|
|
|
@custom-media --below_large (width < 900px);
|
|
|
|
|
@custom-media --below_xlarge (width < 1200px);
|
|
|
|
|
|
|
|
|
|
@custom-media --above_small (width > 400px);
|
|
|
|
|
@custom-media --above_med (width > 700px);
|
|
|
|
|
@custom-media --above_large (width > 900px);
|
|
|
|
|
@custom-media --above_xlarge (width > 1200px);
|
2024-11-07 20:18:50 +00:00
|
|
|
`,
|
|
|
|
|
},
|
|
|
|
|
},
|
2023-10-16 02:41:14 +00:00
|
|
|
},
|
2023-05-15 04:08:30 +00:00
|
|
|
});
|