16 lines
428 B
TypeScript
16 lines
428 B
TypeScript
import { defineConfig } from "vite"
|
|
import react from "@vitejs/plugin-react"
|
|
import dts from "vite-plugin-dts"
|
|
import { genIndexTsPlugin } from "./scripts-plugin/vite-plugin-gen-index-ts"
|
|
import { genIndexCssPlugin } from "./scripts-plugin/vite-plugin-gen-index-css"
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
genIndexTsPlugin(),
|
|
genIndexCssPlugin(),
|
|
react(),
|
|
dts({
|
|
insertTypesEntry: true,
|
|
}),
|
|
],
|
|
}) |