Skip to content

Commit

Permalink
perf: 优化注释和插件命名
Browse files Browse the repository at this point in the history
  • Loading branch information
pany-ang committed Dec 2, 2024
1 parent cfbefb1 commit 08ce7fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import vue from "@vitejs/plugin-vue"
import vueJsx from "@vitejs/plugin-vue-jsx"
import UnoCSS from "unocss/vite"
import AutoImport from "unplugin-auto-import/vite"
import UnpluginSvgComponent from "unplugin-svg-component/vite"
import SvgComponent from "unplugin-svg-component/vite"
import { ElementPlusResolver } from "unplugin-vue-components/resolvers"
import Components from "unplugin-vue-components/vite"
import { defineConfig, loadEnv } from "vite"
Expand Down Expand Up @@ -91,10 +91,10 @@ export default defineConfig(({ mode }) => {
vue(),
// 支持 JSX、TSX 语法
vueJsx(),
// SVG 文件转化为 Vue 组件
// 支持将 SVG 文件导入为 Vue 组件
svgLoader({ defaultImport: "url" }),
// 自动生成 SvgIcon 组件和 SVG 雪碧图
UnpluginSvgComponent({
SvgComponent({
iconDir: [resolve(__dirname, "src/common/assets/icons")],
preserveColor: resolve(__dirname, "src/common/assets/icons/preserve-color"),
dts: true,
Expand Down

0 comments on commit 08ce7fd

Please sign in to comment.