Skip to content

Commit

Permalink
perf: svg icon 进行 treeShaking
Browse files Browse the repository at this point in the history
  • Loading branch information
pany-ang committed Dec 3, 2024
1 parent 5702a2f commit 17ca9b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ export default defineConfig(({ mode }) => {
iconDir: [resolve(__dirname, "src/common/assets/icons")],
preserveColor: resolve(__dirname, "src/common/assets/icons/preserve-color"),
dts: true,
dtsDir: resolve(__dirname, "types/auto"),
treeShaking: false
dtsDir: resolve(__dirname, "types/auto")
}),
// 原子化 CSS
UnoCSS(),
Expand Down

0 comments on commit 17ca9b5

Please sign in to comment.