This commit is contained in:
juyoungk09 2025-09-10 17:31:47 +09:00
commit afe581ec34
69 changed files with 12702 additions and 25 deletions

View file

@ -7,6 +7,8 @@ import { qwikVite } from "@builder.io/qwik/optimizer";
import { qwikCity } from "@builder.io/qwik-city/vite";
import tsconfigPaths from "vite-tsconfig-paths";
import pkg from "./package.json";
import tailwindcss from "tailwindcss";
import autoprefixer from "autoprefixer";
type PkgDep = Record<string, string>;
const { dependencies = {}, devDependencies = {} } = pkg as any as {
@ -23,6 +25,11 @@ export default defineConfig(({ command, mode }): UserConfig => {
return {
plugins: [qwikCity(), qwikVite(), tsconfigPaths({ root: "." })],
// This tells Vite which dependencies to pre-build in dev mode.
css: {
postcss: {
plugins: [tailwindcss, autoprefixer],
},
},
optimizeDeps: {
// Put problematic deps that break bundling here, mostly those with binaries.
// For example ['better-sqlite3'] if you use that in server functions.