Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fannypack-iconfont

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fannypack-iconfont

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

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

fannypack-less

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.iconFont = {
  // Config.root.src + 'src' dir
  // Where to place your SVG files
  src: 'icons',
  // Where to output the compiled '_icons.sass' file
  sassDest: 'base',
  // Config.root.dest + 'dest' dir
  // Where to send the webfont files
  dest: 'assets/fonts',
  // Auto-run this task in dev mode?
  watchTask: true,
  assetTask: true,
  // File extensions to watch
  extensions: ['woff2', 'woff', 'eot', 'ttf', 'svg']
}

Fannypack.init()

SVG Files

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

Naming your SVG file house.svg will create a SASS variable ($icon-house) and a CSS class (.icon--house).

Keywords

FAQs

Package last updated on 12 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc