Skip to content

Commit

Permalink
Add webp to the list of default media extensions
Browse files Browse the repository at this point in the history
This allows `.webp` images to be automatically supported in builds.
  • Loading branch information
caendesilva authored Nov 22, 2024
1 parent d5b2f5c commit fd1b1b3
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 fd1b1b3

Please sign in to comment.