Skip to content

Commit

Permalink
feat(cli-service): add support new image format avif (#6530)
Browse files Browse the repository at this point in the history
  • Loading branch information
muhamadamin1992 authored Jun 23, 2021
1 parent ae7c5a5 commit 566c803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vue/cli-service/lib/config/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports = (api, options) => {
api.chainWebpack(webpackConfig => {
webpackConfig.module
.rule('images')
.test(/\.(png|jpe?g|gif|webp)(\?.*)?$/)
.test(/\.(png|jpe?g|gif|webp|avif)(\?.*)?$/)
.use('url-loader')
.loader(require.resolve('url-loader'))
.options(genUrlLoaderOptions('img'))
Expand Down

0 comments on commit 566c803

Please sign in to comment.