oc-webui/vite.config.ts
Djuri Baars 21e8c4b334
Some checks failed
WebUI CI / check-changes (push) Has been cancelled
WebUI CI / build (push) Has been cancelled
Dependency updates and upgrades
2024-12-19 16:29:48 +01:00

28 lines
506 B
TypeScript

import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [sveltekit()],
build: {
minify: true,
cssCodeSplit: false,
rollupOptions: {
output: {
manualChunks: () => 'app',
assetFileNames: '[name][extname]'
}
}
},
css: {
preprocessorOptions: {
scss: {
quietDeps: true,
silenceDeprecations: ['import'],
api: 'modern'
}
}
},
test: {
include: ['src/**/*.{test,spec}.{js,ts}']
}
});