mirror of
https://github.com/LukeHagar/ui-development-kit.git
synced 2025-12-06 12:57:44 +00:00
23 lines
462 B
JavaScript
23 lines
462 B
JavaScript
import { purgeCss } from 'vite-plugin-tailwind-purgecss';
|
|
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
sveltekit(),
|
|
purgeCss({
|
|
safelist: {
|
|
// any selectors that begin with "hljs-" will not be purged
|
|
greedy: [/^hljs-/]
|
|
}
|
|
})
|
|
],
|
|
test: {
|
|
include: ['src/**/*.{test,spec}.{js,ts}']
|
|
},
|
|
server: {
|
|
port: 3000,
|
|
origin: 'http://localhost:3000'
|
|
}
|
|
});
|