@inizioevoke/astro-core 2.2.2 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -50,7 +50,7 @@ async function getImageSrc({image, format, quality, width, height, optimize}: Im
|
|
|
50
50
|
if (optimize !== false) {
|
|
51
51
|
const img = await getImage({
|
|
52
52
|
src: image,
|
|
53
|
-
format: format ??
|
|
53
|
+
format: format ?? 'webp',
|
|
54
54
|
quality: quality,
|
|
55
55
|
width,
|
|
56
56
|
height
|
|
@@ -80,7 +80,7 @@ async function createVariable(v: CssImageVariable | CssVariable) {
|
|
|
80
80
|
if (iv.optimize !== false) {
|
|
81
81
|
const img = await getImage({
|
|
82
82
|
src: iv.value,
|
|
83
|
-
format: iv.format ??
|
|
83
|
+
format: iv.format ?? 'webp',
|
|
84
84
|
quality: iv.quality,
|
|
85
85
|
width: iv.width,
|
|
86
86
|
height: iv.height
|