36 lines
923 B
TypeScript
36 lines
923 B
TypeScript
import { sentrySvelteKit } from "@sentry/sveltekit";
|
|
import { purgeCss } from 'vite-plugin-tailwind-purgecss';
|
|
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { defineConfig } from 'vitest/config';
|
|
import path from 'path';
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
host: 'localhost',
|
|
port: 5174,
|
|
},
|
|
envPrefix: "PUBLIC_",
|
|
plugins: [sentrySvelteKit({
|
|
sourceMapsUploadOptions: {
|
|
org: "none-b0c3fadae",
|
|
project: "javascript-sveltekit"
|
|
}
|
|
}), sveltekit(), purgeCss({
|
|
safelist: {
|
|
// any selectors that begin with "hljs-" will not be purged
|
|
greedy: [/^hljs-/],
|
|
},
|
|
})],
|
|
test: {
|
|
include: ['src/**/*.{test,spec}.{js,ts}']
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
$lib: path.resolve(__dirname, 'src', 'lib'),
|
|
$root: path.resolve(__dirname),
|
|
$src: path.resolve(__dirname, 'src'),
|
|
$routes: path.resolve(__dirname, 'src', 'routes')
|
|
}
|
|
}
|
|
});
|