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

@hugsmidjan/gulp-iconfont

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hugsmidjan/gulp-iconfont

iconfont gulp task

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-60%
Maintainers
1
Weekly downloads
 
Created
Source

@hugsmidjan/gulp-iconfont

npm install --save-dev @hugsmidjan/gulp-iconfont

Usage

const [cssBundle, cssWatch] = require('@hugsmidjan/gulp-iconfont')(opts);

API / Advanced usage

const iconfontTaskFactory = require('@hugsmidjan/gulp-iconfont');

const options = {
  // These are the defaults:
  name: 'iconfont', // the display name of the generated tasks
  src: 'src/',
  dist: 'pub/i/',
  glob: 'iconfont/*.svg', // which files to use as entry points
  fontName: 'icons',
  // scssFile: '', // `options.src`-relative path, including filename
  // lessFile: '', // `options.src`-relative path, including filename
  // onGlyphs: null, // (glyphs:{ name: string, unicode: string[]}, options: object) => void
};

// Create the gulp tasks based on the above options.
const iconfontTasks = iconfontTaskFactory(options);

// iconfontTasks is a two item array...
const [iconfontBundle, iconfontWatch] = iconfontTasks;
// ...but it also exposes the tasks as named properties.
const { bundle, watch } = iconfontTasks;

This task generates a set of font-files along with the JSON file {{options.fontName}}.json which can be consumed by scripts or other tasks.

The scssFile and lessFile options generate LESS/SCSS files with the icon glyps as named variables.

FAQs

Package last updated on 27 May 2019

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