【发布时间】:2017-06-10 08:22:25
【问题描述】:
我正在加载gulp-load-plugins 和其他模式,但是当我使用del 包时,它说它是未定义的:
var $ = require('gulp-load-plugins')({
pattern: ['gulp-*', 'gulp.*', '@*/gulp{-,.}*', 'main-bower-files', 'uglify-save-license', 'del']
});
这是我的使用方法:
gulp.task('clean', function ()
{
return $.del([...]);
});
我得到的错误:
TypeError: $.del is not a function
【问题讨论】:
标签: javascript node.js npm gulp del