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