Skip to content

Commit 6c9248c

Browse files
committed
feat: add lossless support for WebP and AVIF formats in image optimization
- Introduced lossless configuration options for both WebP and AVIF formats in the image optimization settings of webpack.common.js. - This enhancement improves image quality while maintaining file size efficiency.
1 parent 69e57c4 commit 6c9248c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎config/webpack.common.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ module.exports = {
3333
compressionLevel: 9,
3434
},
3535
gif: {},
36+
webp: {
37+
lossless: true,
38+
},
39+
avif: {
40+
lossless: true,
41+
},
3642
},
3743
},
3844
},

0 commit comments

Comments
 (0)