Files
freno-dev/app.config.ts
Michael Freno 5aecf6e555 build opt
2025-12-18 13:51:02 -05:00

34 lines
839 B
TypeScript

import { defineConfig } from "@solidjs/start/config";
import tailwindcss from "@tailwindcss/vite";
export default defineConfig({
vite: {
plugins: [tailwindcss()],
build: {
rollupOptions: {
output: {
manualChunks: (id) => {
// Split highlight.js into its own chunk
if (id.includes("highlight.js")) {
return "highlight";
}
// Split other large vendor libraries
if (id.includes("node_modules")) {
if (id.includes("@solidjs") || id.includes("solid-js")) {
return "solid";
}
if (id.includes("@trpc")) {
return "trpc";
}
return "vendor";
}
}
}
}
}
},
server: {
preset: "vercel"
}
});