We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When upgrading to v2.3.0 of this plugin, I get an error when there are overlapping targets.
The code below reflects what I have included in my vite.config.js:
viteStaticCopy({ targets: [ {src: ['resources/images'], dest: '../' }, {src: 'app/Platforms/*/resources/images/*.{svg,png,jpeg}',dest: '../images/platforms'}] });
This results in the following error: [vite-plugin-static-copy:build] EEXIST: file already exists, mkdir '/public/images'
[vite-plugin-static-copy:build] EEXIST: file already exists, mkdir '/public/images'
It seems the plugin tries to create the 'images' folder for both targets. This issue does not occur when I revert back to v2.2.0.
I suspect this may be caused by the change to "improve performance by coping files concurrently when possible".
The text was updated successfully, but these errors were encountered:
Would you create a minimal reproduction?
Sorry, something went wrong.
having same issue after upgrading 2.2.0 -> 2.3.0 Looks like it fails when mkdir which already exists
No branches or pull requests
When upgrading to v2.3.0 of this plugin, I get an error when there are overlapping targets.
The code below reflects what I have included in my vite.config.js:
This results in the following error:
[vite-plugin-static-copy:build] EEXIST: file already exists, mkdir '/public/images'
It seems the plugin tries to create the 'images' folder for both targets. This issue does not occur when I revert back to v2.2.0.
I suspect this may be caused by the change to "improve performance by coping files concurrently when possible".
The text was updated successfully, but these errors were encountered: