Skip to content

Commit 3bba7cf

Browse files
committed
Fix font and icon build pipeline
Previously it did't work on my machine. Now it does.
1 parent b950484 commit 3bba7cf

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

build/build.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ function assets(outputDirs) {
160160
* @return {stream}
161161
*/
162162
function icons(outputDirs) {
163-
let iconAssetsFilter = gulpFilter(['*.woff2', '*.woff', '*.eot', '*.ttf']);
164-
165-
return gulp.src(path.join(conf.paths.materialIcons, '*'), {base: conf.paths.materialIcons})
166-
.pipe(iconAssetsFilter)
163+
return gulp
164+
.src(
165+
path.join(conf.paths.materialIcons, '/**/*.+(woff2|woff|eot|ttf)'),
166+
{base: conf.paths.materialIcons})
167167
.pipe(multiDest(outputDirs));
168168
}
169169

@@ -172,9 +172,7 @@ function icons(outputDirs) {
172172
* @return {stream}
173173
*/
174174
function fonts(outputDirs) {
175-
let fontFilter = gulpFilter(['*.woff2']);
176-
177-
return gulp.src(path.join(conf.paths.robotoFonts, '*'), {base: conf.paths.robotoFonts})
178-
.pipe(fontFilter)
175+
return gulp
176+
.src(path.join(conf.paths.robotoFonts, '/**/*.+(woff2)'), {base: conf.paths.robotoFonts})
179177
.pipe(multiDest(outputDirs));
180178
}

0 commit comments

Comments
 (0)