16 lines
442 B
TypeScript
16 lines
442 B
TypeScript
import { fileURLToPath, URL } from "node:url";
|
|
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
export default defineConfig({
|
|
root: fileURLToPath(new URL(".", import.meta.url)),
|
|
plugins: [react()],
|
|
css: {
|
|
postcss: fileURLToPath(new URL("../postcss.config.cjs", import.meta.url)),
|
|
},
|
|
build: {
|
|
outDir: fileURLToPath(new URL("../dist-showcase", import.meta.url)),
|
|
emptyOutDir: true,
|
|
},
|
|
});
|