vbenjs / vite-plugin-svg-icons

Vite Plugin for fast creating SVG sprites.
MIT License
819 stars 111 forks source link

virtual:vite-plugin-svg-icons bundle too large [打包過大] #60

Open dontz1230 opened 2 years ago

dontz1230 commented 2 years ago

I've import virtual register in main.ts

but some how when I build in vite, the bundle of virtual:vite-plugin-svg-icons is too large, which caused the build to fail (about 17M)

image

but when I checkout other developers' repos, it turned out that the bundle size is only about 100 kb

qinhua commented 1 year ago

我也遇到了这个问题,估计是 svg 本身的体积,看可不可以压缩一下,或者删掉未使用的 svg 或者换用其它方案

chenweigh commented 1 year ago

怎么打包svg文件,我本地配置好,运行没问题,打包后的组件,图标不显示,查看没有svg文件。