0.2.2 • Published 10 years ago

broccoli-webfont v0.2.2

Weekly downloads
25
License
public domain
Repository
github
Last release
10 years ago

broccoli-webfont

Broccoli plugin that generates webfonts from SVG icons.

It is wrapper around webfonts-generator.

Install

npm install broccoli-webfont

Usage

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, cssDest and htmlDest are relative paths
  • files supports glob patterns
  • files default value is ['**/*.svg']
  • dest default value is '.'
  • paths of default templates are in the webfonts.templates object.

License

Public domain, see the LICENCE.md file.

0.2.2

10 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.0

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago

0.0.0

11 years ago