Skip to content

Commit 3497373

Browse files
stefannegelefilipesilva
authored andcommitted
feat(build): add loaders for fonts
Close #1765
1 parent 23a6cc6 commit 3497373

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/angular-cli/models/webpack-build-common.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,8 @@ export function getWebpackCommonConfig(
9797
       { test: /\.(jpg|png|gif)$/, loader: 'url-loader?limit=10000' },
9898
       { test: /\.html$/, loader: 'raw-loader' },
9999

100-
{ test: /\.(otf|woff|ttf|svg)$/, loader: 'url?limit=10000' },
101-
{ test: /\.woff2$/, loader: 'url?limit=10000&mimetype=font/woff2' },
102-
{ test: /\.eot$/, loader: 'file' }
100+
{ test: /\.(otf|ttf|woff|woff2)$/, loader: 'url?limit=10000' },
101+
{ test: /\.(eot|svg)$/, loader: 'file' }
103102
]
104103
},
105104
plugins: [

0 commit comments

Comments
 (0)