Files
ui-development-kit/vite.config.js

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'
}
});