picgo-plugin-img-avif 1.0.2 → 1.0.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 +1 -1
- package/src/index.js +1 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -46,7 +46,7 @@ const config = (ctx) => {
|
|
|
46
46
|
// Core handler function
|
|
47
47
|
const handle = async (ctx) => {
|
|
48
48
|
// Get user configuration
|
|
49
|
-
const userConfig = ctx.getConfig('picgo-plugin-
|
|
49
|
+
const userConfig = ctx.getConfig('picgo-plugin-img-avif') || {}
|
|
50
50
|
const targetFormat = userConfig.format || 'original'
|
|
51
51
|
const quality = parseInt(userConfig.quality) || 80
|
|
52
52
|
const lossless = userConfig.lossless || false
|