spotube/website/vite.config.ts
Kingkor Roy Tirtho dffd494d4a Revert "website: remove vercel trashes"
This reverts commit 49e2d1b759.
2025-08-02 22:51:25 +06:00

24 lines
479 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: [".."],
},
port: 3000,
},
});