We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1d172a commit 6ac20b6Copy full SHA for 6ac20b6
gulp-tasks/module-tasks/copy-task.js
@@ -1,5 +1,6 @@
1
2
var path = require('path');
3
+var filter = require('../lib/gulp-mini-filter.js');
4
5
module.exports = function(gulp, module) {
6
@@ -16,6 +17,10 @@ module.exports = function(gulp, module) {
16
17
});
18
19
return gulp.src(glob)
20
+ .pipe(filter(function(file) {
21
+ // Only copy files -- don't copy empty directories
22
+ return file.stat.isFile();
23
+ }))
24
.pipe(gulp.dest(module.folders.dest));
25
26
0 commit comments