Skip to content

Commit

Permalink
fix: add missing mkdir recursive option (#28)
Browse files Browse the repository at this point in the history
Co-authored-by: Fateh AK <[email protected]>
  • Loading branch information
hex-ci and FatehAK authored May 26, 2024
1 parent 782026d commit 79cc272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function ViteImageOptimizer(optionsParam: Options = {}): Plugin {

const ensureCacheDirectoryExists = async function () {
if (options.cache === true && !fs.existsSync(options.cacheLocation)) {
await fsp.mkdir(options.cacheLocation);
await fsp.mkdir(options.cacheLocation, { recursive: true });
}
};

Expand Down

0 comments on commit 79cc272

Please sign in to comment.