Giter Site home page Giter Site logo

Comments (7)

Yixuan-Wang avatar Yixuan-Wang commented on June 8, 2024 1

hole-icons

from pkuholecommunity.

Yixuan-Wang avatar Yixuan-Wang commented on June 8, 2024 1

找到一个库 styled-icons,也许可以做 icomoon 的 tree-shaking

但它有一个 CSS in JS 的依赖……目前看来没有必要加这样一个负担……

from pkuholecommunity.

AllanChain avatar AllanChain commented on June 8, 2024

据我所知,mdi 要减少 bundle size 要用 JS SVG 的方法,先 import 再用。会比较麻烦。

ps:我之前对 Vuetify 项目试过用 JS SVG 方法收效甚微,不知道是什么原因,已被打击信心 orz

pps: mdi 是个好东西

from pkuholecommunity.

Yixuan-Wang avatar Yixuan-Wang commented on June 8, 2024

据我所知,mdi 要减少 bundle size 要用 JS SVG 的方法,先 import 再用。会比较麻烦。

现在的解决方案其实比 import 还麻烦,要到网上重新打包字体……现在只用了 24 个图标,转换成 import 工作量还不大……之后每次使用也只是添加一个 import,而不用打包新的字体文件……

ps: 大爱 mdi,不过还是谷歌原本 Material Design 图标最好,尤其是最初的计划案,由 mdi 社区新增的部分有设计不协调的。

from pkuholecommunity.

AllanChain avatar AllanChain commented on June 8, 2024

mdi-bookmark-multiple mdi-plus-thick

from pkuholecommunity.

Yixuan-Wang avatar Yixuan-Wang commented on June 8, 2024

试图在 mdi 里找到和原来样式一致的,结果特别不协调😭

bookmark-multiple 的尺寸感觉特别不搭调……

from pkuholecommunity.

Yixuan-Wang avatar Yixuan-Wang commented on June 8, 2024

svg 渲染效果堪忧(看来我是忘了我搭博客的时候遇到的灾难了😭)目前看起来还是乖乖地打包 icomoon 吧……

ps: 或者直接用其他图标字体……但那样文件就太大……

from pkuholecommunity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.