26 lines
530 B
TypeScript
26 lines
530 B
TypeScript
import { defineConfig } from "vite";
|
|
import { miaodaDevPlugin } from "miaoda-sc-plugin";
|
|
import react from "@vitejs/plugin-react";
|
|
import svgr from "vite-plugin-svgr";
|
|
import path from "path";
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
miaodaDevPlugin(),
|
|
svgr({
|
|
svgrOptions: {
|
|
icon: true,
|
|
exportType: "named",
|
|
namedExport: "ReactComponent",
|
|
},
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
});
|