diff --git a/build/build.js b/build/build.js index 73c702bb8622829e821db98bfe58e16f4af2d542..a4e52127fef30117964214dbea46e1e7fd00c412 100644 --- a/build/build.js +++ b/build/build.js @@ -160,10 +160,10 @@ function assets(outputDirs) { * @return {stream} */ function icons(outputDirs) { - let iconAssetsFilter = gulpFilter(['*.woff2', '*.woff', '*.eot', '*.ttf']); - - return gulp.src(path.join(conf.paths.materialIcons, '*'), {base: conf.paths.materialIcons}) - .pipe(iconAssetsFilter) + return gulp + .src( + path.join(conf.paths.materialIcons, '/**/*.+(woff2|woff|eot|ttf)'), + {base: conf.paths.materialIcons}) .pipe(multiDest(outputDirs)); } @@ -172,9 +172,7 @@ function icons(outputDirs) { * @return {stream} */ function fonts(outputDirs) { - let fontFilter = gulpFilter(['*.woff2']); - - return gulp.src(path.join(conf.paths.robotoFonts, '*'), {base: conf.paths.robotoFonts}) - .pipe(fontFilter) + return gulp + .src(path.join(conf.paths.robotoFonts, '/**/*.+(woff2)'), {base: conf.paths.robotoFonts}) .pipe(multiDest(outputDirs)); }