iconfont-generator-for-react
v1.0.4
Published
## usage
Downloads
9
Readme
iconfont-extract
usage
Install with npm:
npm install --save-dev iconfont-extract
add iconfont-extract-config.js
module.exports = {
url: "http://at.alicdn.com/t/c/font_3216871_4g87m8dpt9c.js",
}
add script
{
"scripts": {
"icons": "iconfont-extract"
},
}
execute command
npm run icons
options
- url: icontfont js address of the generated icon library.
- outDir: output dir.
- prefix: The prefix of the generated components.