xicons
xicons copied to clipboard
SVG Vue/React components integrated from fluentui-system-icons, ionicons, ant-design-icons, material-design-icons, Font-Awesome, tabler-icons and carbon icons. (Vue3, Vue2, React, SVG)
Bumps [fs-extra](https://github.com/jprichardson/node-fs-extra) from 9.1.0 to 11.1.0. Changelog Sourced from fs-extra's changelog. 11.1.0 / 2022-11-29 Re-add main field to package.json for better TypeScript compatibility (#979, #981) 11.0.0 / 2022-11-28 Breaking Changes...
Bumps [fs-extra](https://github.com/jprichardson/node-fs-extra) from 9.1.0 to 11.1.0. Changelog Sourced from fs-extra's changelog. 11.1.0 / 2022-11-29 Re-add main field to package.json for better TypeScript compatibility (#979, #981) 11.0.0 / 2022-11-28 Breaking Changes...
Hello everyone, is it possible to change the Wght axis of the material icons icons, using this lib? https://developers.google.com/fonts/docs/material_symbols#wght_axis https://github.com/07akioni/xicons/assets/52549124/a4a1bcb9-8a25-4e80-a2a3-6f393150baab
需求:动态输入一个图标名称就可以渲染出图标 ```vue import * as fluentIcons from '@/stores/task-reward' ``` 但是这个法子行不通,图标太多了无用图标都导入了进来,而且卡爆了。。。 另外一种思路:搭个后端程序专门提供所有图标的网络服务。
未引入图标库的图标时,打包时仅有29个modules transformed,built in 1.22s  引入@vicons/antd后,项目中随便使用一两个图标,打包时有820 modules transformed,built in 2.64s  继续加入@vicons/fluent后,项目中再随便使用一两个图标,打包时直接变成10891 modules transformed,built in 24.60s  当项目中使用的图标包越多,即使在项目中只使用到了包中的少部分图标,对打包项目构建的速度也会影响很大
我发现这是很多图标文件导致的,如果同时安装了几个@vicons 下的图标库,node_modules 中需要拷贝或者解压的文件超过了几万个 使用网络共享磁盘的情况下表现的非常缓慢,甚至超时,例如: https://github.com/yarnpkg/yarn/pull/8363 如果把图标放到一个文件中,依靠外部项目自身的tree shaking是不是一个更好的办法?
## 错误 一个 Nuxt 3 项目,在组件或 plugin 中存在以下代码: ```js import { Icon } from '@vicons/utils' ``` 会得到以下错误: ``` ERROR window is not defined at Object. (node_modules/.pnpm/[email protected]/node_modules/css-render/lib/mount.js:8:1) at ... ``` ##...