
工程配置
文章平均质量分 51
王_lin
这个作者很懒,什么都没留下…
展开
-
使用Vite插件 实现自定义SVG组件
【代码】使用Vite配置 使用插件`vite-plugin-svg-icons` 自定义SVG组件。原创 2024-09-06 16:48:57 · 484 阅读 · 0 评论 -
使用vite打包 去除 Console & debugger
选项不会缩减空格,因为会移除掉 pure 标注,导致破坏 tree-shaking。,它比 terser 快 20-40 倍,压缩率只差 1%-2%。可以禁用最小化混淆,或是用来指定使用哪种混淆器。注意,在 lib 模式下使用。时必须先安装 Terser。原创 2024-07-17 14:03:53 · 1272 阅读 · 0 评论