mirror of
https://github.com/LukeHagar/sveltekit-extension-template.git
synced 2025-12-06 04:21:37 +00:00
19 lines
462 B
TypeScript
19 lines
462 B
TypeScript
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { purgeCss } from 'vite-plugin-tailwind-purgecss';
|
|
import { defineConfig } from 'vitest/config';
|
|
import { fileURLToPath } from 'url';
|
|
|
|
export default defineConfig({
|
|
plugins: [sveltekit(), purgeCss()],
|
|
test: {
|
|
include: ['src/**/*.{test,spec}.{js,ts}']
|
|
},
|
|
build: {
|
|
rollupOptions: {
|
|
input: {
|
|
background: fileURLToPath(new URL('./src/background.ts', import.meta.url)),
|
|
}
|
|
}
|
|
}
|
|
});
|