I have cloned a repo with a working gulpfile.js, and now when running gulf on the cloned repo, I received the error
Object #<Object> has no method 'if'
The offending task code: gulp.task('html', ['styles'], function () {
return gulp.src('app/*.html')
.pipe($.useref.assets({searchPath: '{.tmp,app}'}))
.pipe($.if('*.css', $.csso()))
.pipe($.useref.restore())
.pipe($.useref())
.pipe(gulp.dest('dist'));
});
I have installed gulp-if and gulp-csso. $ is
var $ = require('gulp-load-plugins')();
Still learning gulp. Not sure where to go from here.