Skip to content

一键下载并格式化 iconfont 图标到项目中

Notifications You must be signed in to change notification settings

lilonghe/iconfont-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Iconfont format

一键下载 Iconfont 项目所有图标,自动生成 icon 组件所需要的图标信息

Config

const config = {
    url: 'https://at.alicdn.com/t/c/font_4622387_tu0pg1aur2b.js',
    savePath: './demo/icons.tsx',
    // 是否是多色图标 is colorful icon
    isColorFul: false,
    // 是否保留 svg 标签 is keep svg tag
    keepSVG: false,
}

Usage

将 index.mjs 拷贝到项目中,修改 index.mjs 中的 config 信息,执行 node index.mjs

node index.mjs
// package.json
"scripts": {
    "icon": "node index.mjs"
}
npm run icon

About

一键下载并格式化 iconfont 图标到项目中

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published