Skip to content

Commit

Permalink
Merge pull request #663 from hydephp/webp-image-extensions
Browse files Browse the repository at this point in the history
Add `webp` to the list of default media extensions
  • Loading branch information
caendesilva authored Nov 22, 2024
2 parents d5b2f5c + fd1b1b3 commit c5457d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/Filesystem/MediaFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
class MediaFile extends ProjectFile
{
/** @var array<string> The default extensions for media types */
final public const EXTENSIONS = ['png', 'svg', 'jpg', 'jpeg', 'gif', 'ico', 'css', 'js'];
final public const EXTENSIONS = ['png', 'svg', 'jpg', 'jpeg', 'webp', 'gif', 'ico', 'css', 'js'];

/** @return array<string, \Hyde\Support\Filesystem\MediaFile> The array keys are the filenames relative to the _media/ directory */
public static function all(): array
Expand Down

0 comments on commit c5457d6

Please sign in to comment.