mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-13 02:17:30 +00:00
23 lines
459 B
TypeScript
23 lines
459 B
TypeScript
import { purgeCss } from 'vite-plugin-tailwind-purgecss';
|
|
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
sveltekit(),
|
|
purgeCss({
|
|
safelist: {
|
|
// any selectors that begin with "hljs-" will not be purged
|
|
greedy: [/^hljs-/]
|
|
}
|
|
})
|
|
],
|
|
server: {
|
|
fs: {
|
|
// Allow serving files from one level up to the project root
|
|
// posts, copy
|
|
allow: ['..']
|
|
}
|
|
}
|
|
});
|