Saturday 10 June 2017

gulp loading other patterns in gulp-load-plugins error

I am loading gulp-load-plugins and other patterns, but when I use del package, it says it is undefined:

var $ = require('gulp-load-plugins')({
    pattern: ['gulp-*', 'gulp.*', '@*/gulp{-,.}*', 'main-bower-files', 'uglify-save-license', 'del']
});

here is how i use it:

gulp.task('clean', function ()
{
    return $.del([...]);
});

error i get:

 TypeError: $.del is not a function



via Bonnard

No comments:

Post a Comment