1.0.5 • Published 4 years ago
cli-icomoon v1.0.5
This helper is used for automation font generation through the icomoon.io service.
Usage
Place in your script code:
const icomoon = require('cli-icomoon');
icomoon({iconsPath: './src/icons', outputPath: './dist'});What the script does
Generates a styles and fonts from SVG images in specified directory.
Additional Information
- Property
iconsPath- directory with SVG images. - The generated fonts are located in the
{outputPath}/fontspath. - Generated css is saved in
{outputPath}/css/icomoon.cssand alternate scss version in{outputPath}/scss/icomoon.scss. - The script creates
{outputPath}/tmpfor temporary files. The script automatically deletes this directory upon completion. - The naming of the font classes matches the file names. For example, a
./src/icons/bars.svgfile will have classicon-bars.