Commit c539822 1 parent bcadf33 commit c539822 Copy full SHA for c539822
File tree 2 files changed +14
-10
lines changed
2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -60,15 +60,19 @@ function gulpJadeInheritance(options) {
60
60
filesPaths = _ . union ( filesPaths , fullpaths ) ;
61
61
} ) ;
62
62
63
- vfs . src ( filesPaths , { 'base' : options . basedir } )
64
- . pipe ( es . through (
65
- function ( f ) {
66
- stream . emit ( 'data' , f ) ;
67
- } ,
68
- function ( ) {
69
- stream . emit ( 'end' ) ;
70
- }
71
- ) ) ;
63
+ if ( filesPaths . length ) {
64
+ vfs . src ( filesPaths , { 'base' : options . basedir } )
65
+ . pipe ( es . through (
66
+ function ( f ) {
67
+ stream . emit ( 'data' , f ) ;
68
+ } ,
69
+ function ( ) {
70
+ stream . emit ( 'end' ) ;
71
+ }
72
+ ) ) ;
73
+ } else {
74
+ stream . emit ( 'end' ) ;
75
+ }
72
76
} else {
73
77
stream . emit ( 'end' ) ;
74
78
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " gulp-jade-inheritance" ,
3
- "version" : " 0.5.4 " ,
3
+ "version" : " 0.5.5 " ,
4
4
"description" : " Rebuild only changed jade files and all it dependencies" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments