Skip to content

Commit 8ea6416

Browse files
committed
Allow ?lqip=0 to disable lqip
1 parent 5e471a6 commit 8ea6416

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/vite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { imagetools } from 'vite-imagetools'
22
import { resize, format, setMetadata, metadataFormat, resolveConfigs } from 'imagetools-core'
33

44
function lqip(cfg, ctx) {
5-
if ('lqip' in cfg) {
5+
if (cfg.lqip) {
66
const r = resize({ width: cfg.lqip }, ctx)
77
const f = format({ format: 'webp', quality: '20' }, ctx)
88
return async function (image) {

0 commit comments

Comments
 (0)