gulp-spritesmith
gulp-spritesmith copied to clipboard
gulp plugin for sprite generation
my image name is `icon-alert-active.png`, then generated css class name is `.icon-icon-alert-active`, how to remove `icon-` prefix?
I reported the same on nodejs repository: https://github.com/nodejs/node/issues/13152 ``` $ gulp sprite [10:52:46] Using gulpfile ~/projects/website/gulpfile.js (node:6778) DeprecationWarning: 'GLOBAL' is deprecated, use 'global' [10:52:46] Starting 'sprite'... [10:52:46] Finished 'sprite' after...
``` const gulp = require('gulp'); const spritesmith = require('gulp-spritesmith'); const gulpif = require('gulp-if'); gulp.task('sprites', () => gulp.src('img/sprites/*.png') .pipe(spritesmith({ imgName: 'sprite.png', styleName: 'sprite.css', imgPath: '../img/sprite.png', padding: 2 })) .pipe(gulpif('*.png', gulp.dest('img/'))) .pipe(gulpif('*.css',...
This is a courtesy notice. It seems that you, @Otouto, and I wrote a `grunt-spritesmith` port at the same time. Since you are still developing `gulp-spritesmith`, it seems like you...
When passing file paths to path.relative it generates a path that I wouldn't expect. Better to use just the dirname of the file instead. If I have a generated folder:...