vite-plugin-image-optimizer
vite-plugin-image-optimizer copied to clipboard
fix: add missing mkdir recursive option
What is the purpose of this pull request?
- [X] Bug fix
- [ ] New Feature
- [ ] Documentation
- [ ] Other
Description
Fixed #27
There are two mkdir in the code, one of which uses recursive, and the other does not. Without recursive, multi-level directories cannot be created and an error will be reported.
Checks
- [X] PR adheres to the code style of this project
- [X] Related issues linked using
fixes #number - [X] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
- [X] Lint and build have passed locally by running
pnpm lint && pnpm build - [X] Code changes have been verified in local
- [X] Documentation added/updated if necessary
Additional Context
Please merge !
Yeah I see absolutely no problem in merging this, @FatehAK.
For now I have made a fork which implements this PR at @jonasgeiler/vite-plugin-image-optimizer
Thanks for the support @hex-ci and @jonasgeiler this change is now available in v1.1.8.