Files
snapp/vite.config.ts
2024-02-10 17:13:46 +01:00

21 lines
459 B
TypeScript

import { purgeCss } from 'vite-plugin-tailwind-purgecss';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig, searchForWorkspaceRoot } from 'vite';
export default defineConfig({
server:{
fs:{
allow:[
searchForWorkspaceRoot(process.cwd()),
'/translations'
]
}
},
plugins: [sveltekit(), purgeCss({
safelist: {
// any selectors that begin with "hljs-" will not be purged
greedy: [/^hljs-/],
},
}),
],
});