Skip to content

Commit

Permalink
feat(build): add loaders for fonts
Browse files Browse the repository at this point in the history
Close #1765
  • Loading branch information
stefannegele authored and filipesilva committed Oct 28, 2016
1 parent 23a6cc6 commit 3497373
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/angular-cli/models/webpack-build-common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,8 @@ export function getWebpackCommonConfig(
       { test: /\.(jpg|png|gif)$/, loader: 'url-loader?limit=10000' },
       { test: /\.html$/, loader: 'raw-loader' },

{ test: /\.(otf|woff|ttf|svg)$/, loader: 'url?limit=10000' },
{ test: /\.woff2$/, loader: 'url?limit=10000&mimetype=font/woff2' },
{ test: /\.eot$/, loader: 'file' }
{ test: /\.(otf|ttf|woff|woff2)$/, loader: 'url?limit=10000' },
{ test: /\.(eot|svg)$/, loader: 'file' }
]
},
plugins: [
Expand Down

0 comments on commit 3497373

Please sign in to comment.