iconfont-glyphs-map
This is iconfont support package.
Simple Usage
You can use this gulp-iconfont.
gulp
API
glyphsMap(glyphs, [ appendChar, [ withQuote ] ])
return glyph Object
- glyphs (array)
- iconfont glyphs array
- appendChar (default
empty
)- You can add escape character
- For sass, you can append
"\\"
. - For json, you can append
"\\u"
.
- For sass, you can append
- You can add escape character
- withQuote (default
false
)- If true return code is quoted double quote
glyphsMap.array(glyphs, [ withQuote, [ withBackSlash ] ])
return glyph as Object Array
like this
var glyphs = name: "account" code: "E001"
glyphsMap.map(glyphs, [ withQuote, [ withBackSlash ] ])
return glyph as ES6 Map object
CSS output Example
Example for pipe iconfont
-> _map.scss
-> compile with font.scss
-> font.css
You can see full example
gulp