简体   繁体   English

具有不同js文件的多个gulp任务

[英]multiple gulp tasks with different js files

举一个关于多个gulp任务的小例子。

Please create a folder with 'gulp' and add your gulp tasks inside that. 请使用“ gulp”创建一个文件夹,然后在其中添加您的gulp任务。

gulp.js gulp.js

var wrench       = require('wrench');

wrench.readdirSyncRecursive('./gulp').filter(function(file) {
  return (/\.(js)$/i).test(file);
}).map(function(file) {
  require('./gulp/' + file);
});

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM