You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

iconfont-plugin-webpack

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iconfont-plugin-webpack

Iconfont Generator.

0.0.1
Source
npmnpm
Version published
Weekly downloads
3.4K
-24.57%
Maintainers
1
Weekly downloads
 
Created
Source

TO DO.

An Example:

const IconfontPlugin = require('iconfont-plugin-webpack');

new IconfontPlugin({
	src: './src/asset/iconfont',// dir of svg files.required
	family: 'iconfont',// the `font-family`. optional. if multiple iconfonts generated, the dir names will be used.
	dest: {
		font: './src/font/[family].[type]',// paths of generated font files. required.
		css: './src/css/_iconfont_[family].scss'// paths of generated css files. required.
	},
	watch: {
		pattern: 'src/asset/iconfont/**/*.svg',// watch these files to reload. required.
		cwd: undefined// current working dir for watching. optional.
	},
	cssTemplate: function() {}// the function to generate css contents. optional.
})

Keywords

webpack

FAQs

Package last updated on 01 Apr 2017

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