Skip to content

Commit 2d0c725

Browse files
benbankesweaverryan
authored andcommitted
Support AVIF images
1 parent dd8a6a6 commit 2d0c725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/config-generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ class ConfigGenerator {
328328

329329
if (this.webpackConfig.imageRuleOptions.enabled) {
330330
rules.push(generateAssetRuleConfig(
331-
/\.(png|jpg|jpeg|gif|ico|svg|webp)$/,
331+
/\.(png|jpg|jpeg|gif|ico|svg|webp|avif)$/,
332332
this.webpackConfig.imageRuleOptions,
333333
this.webpackConfig.imageRuleCallback,
334334
'images'

0 commit comments

Comments
 (0)