mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-06 04:22:07 +00:00
45 lines
1.1 KiB
TypeScript
45 lines
1.1 KiB
TypeScript
import { sentrySvelteKit } from '@sentry/sveltekit';
|
|
import dynamicImport from 'vite-plugin-dynamic-import';
|
|
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { defineConfig } from 'vitest/config';
|
|
import { ViteImageOptimizer } from 'vite-plugin-image-optimizer';
|
|
import { enhancedImages } from '@sveltejs/enhanced-img';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
sentrySvelteKit({
|
|
adapter: 'node',
|
|
sourceMapsUploadOptions: {
|
|
org: 'appwrite',
|
|
project: 'website'
|
|
}
|
|
}),
|
|
enhancedImages(),
|
|
sveltekit(),
|
|
dynamicImport({
|
|
filter(id) {
|
|
if (id.includes('/node_modules/@appwrite.io/repo/docs')) {
|
|
return true;
|
|
}
|
|
}
|
|
}),
|
|
ViteImageOptimizer({
|
|
cache: true,
|
|
cacheLocation: '.cache'
|
|
})
|
|
],
|
|
css: {
|
|
preprocessorOptions: {
|
|
scss: {
|
|
api: 'modern'
|
|
}
|
|
}
|
|
},
|
|
build: {
|
|
reportCompressedSize: false
|
|
},
|
|
test: {
|
|
include: ['src/**/*.{test,spec}.{js,ts}']
|
|
}
|
|
});
|