1.0.5 • Published 8 years ago

gulp-cssmyicons v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

CSS my icons

Build Status

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;}

There are also versions for Grunt and Broccoli

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

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago