Comments (7)
from pkuholecommunity.
找到一个库 styled-icons,也许可以做 icomoon 的 tree-shaking
但它有一个 CSS in JS 的依赖……目前看来没有必要加这样一个负担……
from pkuholecommunity.
据我所知,mdi 要减少 bundle size 要用 JS SVG 的方法,先 import 再用。会比较麻烦。
ps:我之前对 Vuetify 项目试过用 JS SVG 方法收效甚微,不知道是什么原因,已被打击信心 orz
pps: mdi 是个好东西
from pkuholecommunity.
据我所知,mdi 要减少 bundle size 要用 JS SVG 的方法,先 import 再用。会比较麻烦。
现在的解决方案其实比 import 还麻烦,要到网上重新打包字体……现在只用了 24 个图标,转换成 import 工作量还不大……之后每次使用也只是添加一个 import,而不用打包新的字体文件……
ps: 大爱 mdi,不过还是谷歌原本 Material Design 图标最好,尤其是最初的计划案,由 mdi 社区新增的部分有设计不协调的。
from pkuholecommunity.
mdi-bookmark-multiple mdi-plus-thick
from pkuholecommunity.
试图在 mdi 里找到和原来样式一致的,结果特别不协调😭
bookmark-multiple 的尺寸感觉特别不搭调……
from pkuholecommunity.
svg 渲染效果堪忧(看来我是忘了我搭博客的时候遇到的灾难了😭)目前看起来还是乖乖地打包 icomoon 吧……
ps: 或者直接用其他图标字体……但那样文件就太大……
from pkuholecommunity.
Related Issues (20)
- bug: 在 sidebar 的 box 中出现了多余的文本元素 HOT 2
- 超过 36 小时就是 2 天了 HOT 3
- 路线规划(草稿) HOT 7
- 关注列表按最后回复时间排序 HOT 8
- v0.2.5 Release (Plan) HOT 1
- 上方的“树洞”按钮会跳回原版树洞 HOT 2
- 解决 beta 版本和 stable 版本之间的冲突 HOT 6
- 关注列表分组 HOT 2
- 发布树洞后不能滚动
- 【Feature Request】兼容T大树洞,或者兼容双token登录 HOT 5
- 图标和背景图加载不出 HOT 3
- 关于个人隐私的保护问题 HOT 3
- 安卓手机版Firefox不能选择图片 HOT 7
- RCE 漏洞 HOT 4
- 想问一下北大是官方支持树洞的运营嘛 HOT 3
- 有没有考虑对删除洞进行自动备份+页面显示 HOT 3
- 登录后显示:TypeError: Cannot read property 'length' of undefined HOT 3
- 后端错误返回,无法显示帖子:Cannot read property of undefined HOT 11
- 树洞更新 HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pkuholecommunity.