Naughty Pinching Mannequins
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

fannypack-svgsprite

1.3.0 • Public • Published

fannypack-iconfont

Official Fannypack task for generating an Icon Font from SVG files.

Installation

npm install fannypack-iconfont --save-dev

Usage

// gulpfile.js
 
var Fannypack = require('fannypack')
 
require('fannypack-iconfont')
 
Fannypack.Config.svgSprite = {
  // Config.root.src + 'src' dir
  // Where to place your SVG files
  src: 'img/sprites',
  // Config.root.dest + 'dest' dir
  dest: 'assets/img',
  // Auto-run this task in dev mode?
  watchTask: true,
  assetTask: true,
  // File extensions to watch
  extensions: ['svg']
}
 
Fannypack.init()

SVG Files

All files should be the same size, and it is recommended that they be at least 250x250 pixels.

install

npm i fannypack-svgsprite

Downloadsweekly downloads

2

version

1.3.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability