Skip to content

Commit

Permalink
feat(@angular/cli): support loading webp images (#6594)
Browse files Browse the repository at this point in the history
Fix #6526
  • Loading branch information
Gusachenko authored and filipesilva committed Jun 7, 2017
1 parent 2b5e1c4 commit a0e63ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@angular/cli/models/webpack-configs/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
{ test: /\.html$/, loader: 'raw-loader' },
{ test: /\.(eot|svg)$/, loader: `file-loader?name=[name]${hashFormat.file}.[ext]` },
{
test: /\.(jpg|png|gif|otf|ttf|woff|woff2|cur|ani)$/,
test: /\.(jpg|png|webp|gif|otf|ttf|woff|woff2|cur|ani)$/,
loader: `url-loader?name=[name]${hashFormat.file}.[ext]&limit=10000`
}
].concat(extraRules)
Expand Down

0 comments on commit a0e63ea

Please sign in to comment.