mirror of
https://github.com/LukeHagar/idn-admin-console.git
synced 2025-12-09 20:47:46 +00:00
Update vite.config.ts to include purgeCss plugin
This commit is contained in:
@@ -3,7 +3,15 @@ import { sveltekit } from '@sveltejs/kit/vite';
|
|||||||
import { defineConfig } from 'vitest/config';
|
import { defineConfig } from 'vitest/config';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [sveltekit(), purgeCss()],
|
plugins: [
|
||||||
|
sveltekit(),
|
||||||
|
purgeCss({
|
||||||
|
safelist: {
|
||||||
|
// any selectors that begin with "hljs-" will not be purged
|
||||||
|
greedy: [/^hljs-/]
|
||||||
|
}
|
||||||
|
})
|
||||||
|
],
|
||||||
test: {
|
test: {
|
||||||
include: ['src/**/*.{test,spec}.{js,ts}']
|
include: ['src/**/*.{test,spec}.{js,ts}']
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user