Skip to content

Commit

Permalink
Add avif to image format list
Browse files Browse the repository at this point in the history
Closes #2916
  • Loading branch information
thecrypticace committed Sep 9, 2021
1 parent 110d5f9 commit 00d8996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/builder/webpack-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = function (mix) {
// Add support for loading images.
rules.push({
// only include svg that doesn't have font in the path or file name by using negative lookahead
test: /(\.(png|jpe?g|gif|webp)$|^((?!font).)*\.svg$)/,
test: /(\.(png|jpe?g|gif|webp|avif)$|^((?!font).)*\.svg$)/,
use: [
{
loader: mix.resolve('file-loader'),
Expand Down

0 comments on commit 00d8996

Please sign in to comment.