Gulp 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 gulp-cssmyicons --save-dev
var cssMyIcons = require('gulp-cssmyicons');
gulp.task('icons', function() {
return gulp.src('images/*.svg')
.pipe(cssMyIcons('icons.css'))
.pipe(gulp.dest('./dist/css/'))
});
Type: String
Required
The icons CSS filename
Type: String
Optional
Prefix to add at the beginning of the icons path (see tests)
$ npm run test
MIT