Skip to content

Commit 58f369c

Browse files
committed
feat: Add WebP as asset/resource along to the other formats for the Webpack loader.
1 parent d54d5a4 commit 58f369c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webpack/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const config_factory = (env, argv, config, babel_include = [], package_json) =>
7272
type: "asset/source",
7373
},
7474
{
75-
test: /\.(eot|woff|woff2|ttf|png|jpe?g|gif)$/i,
75+
test: /\.(eot|woff|woff2|ttf|png|jpe?g|gif|webp)$/i,
7676
type: "asset/resource",
7777
},
7878
],

0 commit comments

Comments
 (0)