Skip to content

Commit 0cf6c08

Browse files
summercmsmatthiasmullie
authored andcommitted
Add apng, avif, webp, and woff2 mime types
1 parent e3a0356 commit 0cf6c08

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ The CSS minifier will automatically embed referenced files (like images, fonts,
121121

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

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

126126
```php
127127
$extensions = array(

src/CSS.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ class CSS extends Minify
4444
'jpeg' => 'data:image/jpeg',
4545
'svg' => 'data:image/svg+xml',
4646
'woff' => 'data:application/x-font-woff',
47+
'woff2' => 'data:application/x-font-woff2',
48+
'avif' => 'data:image/avif',
49+
'apng' => 'data:image/apng',
50+
'webp' => 'data:image/webp',
4751
'tif' => 'image/tiff',
4852
'tiff' => 'image/tiff',
4953
'xbm' => 'image/x-xbitmap',

0 commit comments

Comments
 (0)