File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -160,10 +160,10 @@ function assets(outputDirs) {
160
160
* @return {stream }
161
161
*/
162
162
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 } )
167
167
. pipe ( multiDest ( outputDirs ) ) ;
168
168
}
169
169
@@ -172,9 +172,7 @@ function icons(outputDirs) {
172
172
* @return {stream }
173
173
*/
174
174
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 } )
179
177
. pipe ( multiDest ( outputDirs ) ) ;
180
178
}
You can’t perform that action at this time.
0 commit comments