Open Sawtaytoes opened 8 years ago
The same issue happens when using Browserify:
gulp.task('buildJs', () => {
return browserify({
entries: `${SRC}/react/index.jsx`
}).bundle()
.pipe(newer(`${DEST}/bundle.js`))
.pipe(vinylSource('bundle.js'))
.pipe(gulp.dest(DEST));
});
If I remove .pipe(newer(`${DEST}/bundle.js`))
the Gulp task works as usual.
OK, I just saw this: https://github.com/tschaub/gulp-newer/issues/42. For those who want to use newer
with Browserify newer
's author recommends to use Watchify instead.
Guys for me the case ended with a different approach
install node latest version *install the updated node-sass (if you use it) install gulp-changed and discard gulp-newer for the moment
after doing these 3 steps I got my tasks working again
When I am using gulp-requirejs as my src instead of gulp.src(), I get the error "Expected a source file with stats". Originally thought this is because the file didn't exist, but it looks like it might be something weird about how gulp-requirejs() puts files through the stream.
package.json
gulpfile.js