Skip to content

Commit 79cc272

Browse files
hex-ciFatehAK
andauthored
fix: add missing mkdir recursive option (#28)
Co-authored-by: Fateh AK <[email protected]>
1 parent 782026d commit 79cc272

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function ViteImageOptimizer(optionsParam: Options = {}): Plugin {
176176

177177
const ensureCacheDirectoryExists = async function () {
178178
if (options.cache === true && !fs.existsSync(options.cacheLocation)) {
179-
await fsp.mkdir(options.cacheLocation);
179+
await fsp.mkdir(options.cacheLocation, { recursive: true });
180180
}
181181
};
182182

0 commit comments

Comments
 (0)