MadLittleMods / gulp-css-spriter

Sprite Sheet Generation from CSS source files. The best and different approach to sprite sheets.
https://www.npmjs.com/package/gulp-css-spriter
38 stars 19 forks source link

Add options.ignore #3

Closed ghost closed 7 years ago

ghost commented 9 years ago

options.ignore {array} array of globs Images that 'options.ignore' matched will not be included in the spritesheet.

e.g

var gulp = require('gulp');
var spriter = require('gulp-css-spriter');
gulp.task('css', function () {
    return gulp.src('./styles.css')
        .pipe(spriter({
            ignore: [
                './img/*.*',
                './img/icons/*.gif'
            ]
        }))
        .pipe(gulp.dest('./'));
});
MadLittleMods commented 7 years ago

It looks like the files are namespaced to new _gulp_sprite2.js files which would need to be cleaned up. Feel free to revive the PR if you are still interested.