Broccoli plugin to generate a CSS file for SVG icons used as background-image:
.icon-home{background-image:url('icons/home.svg');background:no-repeat;}
$ npm install broccoli-cssmyicons
var cssMyIcons = require('broccoli-cssmyicons');
var tree = cssMyIcons(app, {
files: ['*.svg'],
dest: 'icons.css',
destDir: 'assets/style',
prefixPath: '/'
});
Type: Array
Required
This option is the glob of the svg folders.
Type: String
Optional
Default style.css
Path to the CSS file to export to.
Type: String
Optional
Destination directory to export the CSS file to.
Type: String
Optional
Prefix to add at the beginning of the icons path
$ npm run test
MIT