Dont work with gulp4
See original GitHub issueDont work gulp.spritesmith in gulp4.
About in gulp 3 its ok g gulp.spritesmith version - 6.7.0
TypeError: file.pipe is not a function
at loadPixels (D:\Projects\Web\PROJ\local\.dev\node_modules\pixelsmith\lib\engine.js:40:16)
at fn (D:\Projects\Web\PROJ\local\.dev\node_modules\pixelsmith\node_modules\async\lib\async.js:638:34)
at Immediate.<anonymous> (D:\Projects\Web\PROJ\local\.dev\node_modules\pixelsmith\node_modules\async\lib\async.js:554:34)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
Gulp task:
var spriteData = gulp.src(path.src.sprite)
.pipe(spritesmith({
imgName: '../img/sprite.png',
cssName: 'sprite.less',
padding: 20
}));
// Pipe image stream through image optimizer and onto disk
var imgStream = spriteData.img
// DEV: We must buffer our stream into a Buffer for `imagemin`
.pipe(gulp.dest(path.build.img));
// Pipe CSS stream through CSS optimizer and onto disk
var cssStream = spriteData.css
.pipe(gulp.dest('src/css/blocks/'));
// Return a merged stream to handle both `end` events
return merge(imgStream, cssStream);
});
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Gulp 4 watch not working, only run one time - Stack Overflow
When I run gulp and save SCSS or HTML file it creates a new file successfully. If I save again nothing happens. It...
Read more >gulp 4 file changes tracking with not working #2394 - GitHub
If the bug is in a plugin, open an issue on the plugin repository, not the gulp repository. If you're getting a deprecated...
Read more >Fixing gulp-sass issues in gulp 4. - DEV Community
Anyway, things finally worked out. But then, not everything worked out fine as "sass modules will not be processed" - Somehow, gulp failed...
Read more >A quick guide for switching to gulp 4 | by Jhey Tompkins
A new version of gulp is here. What do you need to know? Will your gulpfile s break? There are various changes listed...
Read more >How to Migrate to Gulp.js 4.0 - SitePoint
However, existing Gulp.js plugins should be compatible and most gulpfile.js ... Consider tasks which don't return the gulp streamed value.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This has been resolved and released in
6.9.0
Cool, thanks for the heads up! I’ll re-open this issue. Please see https://github.com/twolfson/pixelsmith/issues/10 for ETA and resolution