Skip to content

Commit

Permalink
Add apng, avif, webp, and woff2 mime types
Browse files Browse the repository at this point in the history
  • Loading branch information
summercms authored and matthiasmullie committed Jul 20, 2021
1 parent e3a0356 commit 0cf6c08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ The CSS minifier will automatically embed referenced files (like images, fonts,

This methods allows the type of files to be specified, along with their data:mime type.

The default embedded file types are gif, png, jpg, jpeg, svg & woff.
The default embedded file types are gif, png, jpg, jpeg, svg, apng, avif, webp, woff and woff2.

```php
$extensions = array(
Expand Down
4 changes: 4 additions & 0 deletions src/CSS.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ class CSS extends Minify
'jpeg' => 'data:image/jpeg',
'svg' => 'data:image/svg+xml',
'woff' => 'data:application/x-font-woff',
'woff2' => 'data:application/x-font-woff2',
'avif' => 'data:image/avif',
'apng' => 'data:image/apng',
'webp' => 'data:image/webp',
'tif' => 'image/tiff',
'tiff' => 'image/tiff',
'xbm' => 'image/x-xbitmap',
Expand Down

0 comments on commit 0cf6c08

Please sign in to comment.