Friends, help, I can not configure the assembly of sprites (images) for gulp. I put the plugin gulp.spritesmith and gupl-spritesmith - they give the error:
invalid file signature I assume that this is due to the version of gulp # 4.0.
Actually a question, please tell me the plugin for creating sprites for version 4 of gulp or maybe someone knows how to fix this error?
code with the plugin gulp.spritesmith:
var spritesmith = require('gulp.spritesmith'); gulp.task('sprite', function() { var spriteData = gulp.src('./source/sprite/*.png') .pipe(spritesmith({ imgName: 'sprite.png', imgPath: './build/pictures/sprite.png', cssName: '_sprite.css', padding: 5 })); spriteData.img .pipe(gulp.dest('./build/pictures')); spriteData.css .pipe(gulp.dest('./source/scss')); });