2024-01-31 01:57:36 +00:00
|
|
|
// import { sentrySvelteKit } from "@sentry/sveltekit";
|
2022-09-29 22:21:48 +00:00
|
|
|
import { sveltekit } from '@sveltejs/kit/vite';
|
2023-05-15 04:08:30 +00:00
|
|
|
import { defineConfig } from 'vite';
|
2022-09-29 22:21:48 +00:00
|
|
|
|
2024-01-31 01:57:36 +00:00
|
|
|
// TODO: Fix Sentry
|
2023-05-15 04:08:30 +00:00
|
|
|
export default defineConfig({
|
2023-10-17 09:28:53 +00:00
|
|
|
plugins: [
|
2024-01-31 01:57:36 +00:00
|
|
|
// sentrySvelteKit({
|
|
|
|
|
// sourceMapsUploadOptions: {
|
|
|
|
|
// org: process.env.SENTRY_ORG,
|
|
|
|
|
// project: process.env.SENTRY_PROJECT,
|
|
|
|
|
// authToken: process.env.SENTRY_AUTH_TOKEN,
|
|
|
|
|
// cleanArtifacts: true,
|
|
|
|
|
// }
|
|
|
|
|
// }),
|
2023-11-05 00:03:28 +00:00
|
|
|
sveltekit()
|
2023-10-17 09:28:53 +00:00
|
|
|
],
|
2023-06-30 22:08:45 +00:00
|
|
|
test: {
|
|
|
|
|
include: ['src/**/*.{test,spec}.{js,ts}']
|
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);
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-05-15 04:08:30 +00:00
|
|
|
});
|