Commit a02655709410ddf3ba2e45bd4f5a66347491844c
1 parent
9b488cc7
Exists in
master
and in
1 other branch
Copy theme asset files when build
Showing
1 changed file
with
5 additions
and
4 deletions
Show diff stats
gulp/build.js
@@ -104,10 +104,11 @@ gulp.task('other', function () { | @@ -104,10 +104,11 @@ gulp.task('other', function () { | ||
104 | return file.stat.isFile(); | 104 | return file.stat.isFile(); |
105 | }); | 105 | }); |
106 | 106 | ||
107 | - return gulp.src([ | ||
108 | - path.join(conf.paths.src, '/**/*'), | ||
109 | - path.join('!' + conf.paths.src, '/**/*.{map,ts,html,css,js,scss}') | ||
110 | - ]) | 107 | + var srcPaths = [path.join('!' + conf.paths.src, '/**/*.{map,ts,html,css,js,scss}')]; |
108 | + conf.paths.allSources.forEach(function(src) { | ||
109 | + srcPaths.push(path.join(src, '/**/*')); | ||
110 | + }); | ||
111 | + return gulp.src(srcPaths) | ||
111 | .pipe(fileFilter) | 112 | .pipe(fileFilter) |
112 | .pipe(gulp.dest(path.join(conf.paths.dist, '/'))); | 113 | .pipe(gulp.dest(path.join(conf.paths.dist, '/'))); |
113 | }); | 114 | }); |