gulp.src('src/js/ /*.js').pipe("求解怎么在这个pipe里取到 目录名和*.js文件名")
gulp node.js
取决于你要干嘛
用 through2 这个插件。
through2
js var through = require('through2'); gulp.task('xx',function(){ return gulp.src('src/js/*.js') .pipe(through.obj(function(file,enc,cb){ console.log(file.relative); console.log(file.path); this.push(file); cb(); })) });
js
var through = require('through2'); gulp.task('xx',function(){ return gulp.src('src/js/*.js') .pipe(through.obj(function(file,enc,cb){ console.log(file.relative); console.log(file.path); this.push(file); cb(); })) });
NodeJS:Error: Cannot find module 'jshint'
gulp的源码中哪部分是定义.pipe()的?
gulp 编译 jade后的 html 是压缩的,想要不压缩的,能控制吗?
nodejs gulp有没有基于代码注释自动生成文档的插件啊?
gulp中有没有办法监听task执行成功或者失败的状态
gulp-ruby-sass 编译 sass时出错,请问什么原因啊?