mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
43 lines
1.1 KiB
TypeScript
43 lines
1.1 KiB
TypeScript
// import { sentrySvelteKit } from "@sentry/sveltekit";
|
|
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { defineConfig } from 'vite';
|
|
|
|
// TODO: Fix Sentry
|
|
export default defineConfig({
|
|
plugins: [
|
|
// sentrySvelteKit({
|
|
// sourceMapsUploadOptions: {
|
|
// org: process.env.SENTRY_ORG,
|
|
// project: process.env.SENTRY_PROJECT,
|
|
// authToken: process.env.SENTRY_AUTH_TOKEN,
|
|
// cleanArtifacts: true,
|
|
// }
|
|
// }),
|
|
sveltekit(),
|
|
],
|
|
esbuild: {
|
|
target: 'es2022',
|
|
},
|
|
test: {
|
|
include: ['src/**/*.{test,spec}.{js,ts}'],
|
|
mockReset: true,
|
|
},
|
|
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);
|
|
`,
|
|
},
|
|
},
|
|
},
|
|
});
|