Releases: delucis/astro-emit-asset
Releases · delucis/astro-emit-asset
Release list
astro-emit-asset@0.1.4
Patch Changes
-
321daaeThanks @delucis! - Avoids indexing the filename for an asset returned in an array with only one member.Previously, returning
[{ data: '...' }]from an asset generator would result in a filename likeexample.0.HASH.jpg. The unnecessary index is now skipped, resulting in a cleaner filename likeexample.HASH.jpg. -
34758c7Thanks @delucis! - Starts indexing at1for file names in assets that return multiple files.Previously, calling
emitAsset()and returning an array of files would result in file names likeexample.0.HASH.jpg,example.1.HASH.jpg, etc. containing an incrementing index starting at0for each file. This index now starts at1instead of0, resulting in file names likeexample.1.HASH.jpg,example.2.HASH.jpg, etc.