Skip to content

Commit 407625c

Browse files
Gusachenkofilipesilva
authored andcommitted
feat(@angular/cli): support loading webp images (#6594)
Fix #6526
1 parent d220c73 commit 407625c

File tree

1 file changed

+1
-1
lines changed
  • packages/@angular/cli/models/webpack-configs

1 file changed

+1
-1
lines changed

packages/@angular/cli/models/webpack-configs/common.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
8888
{ test: /\.html$/, loader: 'raw-loader' },
8989
{ test: /\.(eot|svg)$/, loader: `file-loader?name=[name]${hashFormat.file}.[ext]` },
9090
{
91-
test: /\.(jpg|png|gif|otf|ttf|woff|woff2|cur|ani)$/,
91+
test: /\.(jpg|png|webp|gif|otf|ttf|woff|woff2|cur|ani)$/,
9292
loader: `url-loader?name=[name]${hashFormat.file}.[ext]&limit=10000`
9393
}
9494
].concat(extraRules)

0 commit comments

Comments
 (0)