mirror of
https://github.com/fergalmoran/snapp.git
synced 2025-12-22 09:41:45 +00:00
21 lines
459 B
TypeScript
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-/],
|
|
},
|
|
}),
|
|
],
|
|
}); |