Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.12.0 to 3.13.1. - [Release notes](https://github.com/nodeca/js-yaml/releases) - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](https://github.com/nodeca/js-yaml/compare/3.12.0...3.13.1) Signed-off-by: dependabot[bot] <support@github.com>
@vkl/svg-iconset-builder
Plugin for creating iconsets from SVG files with customizable optimisations
Installation
Support command line interface:
npm install @vkl/svg-iconset-builder -g
Or you can install for yout project
npm install @vkl/svg-iconset-builder --save
Usage
Command line
svg-iconset --source=<source_folder|required> --result=<output_filename|required> --svgoConfig=<path to SVGO configuration json file>
Examples:
svg-iconset --source=assets/images/icons --result=icons
Creates a file icons-iconset.svg
in same folder
In Project
const SvgIconset = require('svg-iconset');
const config = {
source: 'assets/images/icons', // Reqired
result: 'icons', // Required
// This is optional for optimize files using SVGO plugins
optimize: {
removeViewBox: true, // Will remove attribute viewBox
}
}
new SvgIconset(config).createSet();
Additional
Description
Languages
TypeScript
83%
JavaScript
17%