diff --git a/README.md b/README.md index 94e052e..e18fdc9 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ - Can create Avif versions of supported images (jpg/png). - Skips optimized version if output is larger than original. - Skips Avif/WebP version if output is larger than original, optimized version or smallest version of an image. -- Uses cache to skip processing of unchanged files +- Uses optional cache by default to skip processing of unchanged files ## Install @@ -116,6 +116,30 @@ Default: `true` > Skip optimizing the input if it did not change since the last run. +### cacheDir + +Type: `string`
+Default: `/node_modules/.cache/vite-plugin-imagemin//` + +> Choose the directory to use for caching. +> - Relative paths will be relative to the Vite project's **root** directory. +> - Absolute paths will be use as-is. +> - Absent/non-string value will use the default location. + +### clearCache + +Type: `boolean`
+Default: `false` + +> Clears the cache folder before processing. + +### cache + +Type: `boolean`
+Default: `true` + +> Skip optimizing the input if it did not change since the last run. + ### makeAvif / makeWebp Type: `object`