gulp-cssmyicons
v1.0.5
Published
Gulp plugin to generate a CSS for SVG icons
Downloads
22
Maintainers
Readme
CSS my icons
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;}
CHANGELOG
INSTALL
$ npm install gulp-cssmyicons --save-dev
USAGE
var cssMyIcons = require('gulp-cssmyicons');
gulp.task('icons', function() {
return gulp.src('images/*.svg')
.pipe(cssMyIcons('icons.css'))
.pipe(gulp.dest('./dist/css/'))
});
OPTIONS
cssMyIcons(file, options)
file
Type: String
Required
The icons CSS filename
options.prefix
Type: String
Optional
Prefix to add at the beginning of the icons path (see tests)
CONTRIBUTE
$ npm run test
LICENSE
MIT