sprit features:
- Generates sprites and proper style files out of a directory of images.
- Supports multiple rendering engine (jimp, canvas)
npm install sprit
import * as sprit from 'sprit';
sprit.create({
src: [
'./icons/*.png', // include files
'!./icons/ignore-*.png', // ignore files
],
});
const gulp = require('gulp');
const sprit = require('sprit');
gulp.task('sprite', () => {
const options = {
src: [
'./icons/*.png', // include files
'!./icons/ignore-*.png', // ignore files
],
};
return sprit.src(options).pipe(gulp.dest('./dist'));
});
The MIT License (MIT)
see LICENSE