broccoli-webfont
v0.2.2
Published
Broccoli plugin that generates webfonts from SVG icons.
Downloads
94
Readme
broccoli-webfont
Broccoli plugin that generates webfonts from SVG icons.
It is wrapper around webfonts-generator.
Install
npm install broccoli-webfontUsage
var webfont = require('broccoli-webfont')
var tree = webfont('inputTree', {
//paths or globs
files: [
'icon.svg',
'close.svg'
]
})Webfont(inputTree, options)
inputTree
Broccoli tree with SVG files.
options
Options are the same as in the webfonts-generator, with the following differences:
files,dest,cssDestandhtmlDestare relative pathsfilessupports glob patternsfilesdefault value is['**/*.svg']destdefault value is'.'- paths of default templates are in the
webfonts.templatesobject.
License
Public domain, see the LICENCE.md file.
