Open tassioFront opened 1 week ago
I think we can have a warning log in build.
To be honest, I think it should fail once the application won't work as expected, but a warning would help a lot. :raised_hands:
@sapphi-red, I was creating the PR when I saw this on my terminal:
This validation is done here
Guess it proves the warning is not enough. :sweat_smile: Anyway, let me know if makes sense to open the PR with an error msg; or I can keep the warning, but change the message like:
'No file was found to copy on ${src} src.'
otherwise, we can close the issue.
[suggestion] throws an error when it doesn't find the file
I have been using the vite-plugin-static-copy for a while and recently I needed to move the file path it copies. So, I changed the copied file from
src/old-path
tosrc/new-path
, but I forgot to update the plugin configuration:Unfortunately, it does not throw any error, so I noticed it fails after manual validations. Does make sense to throw an error when the plugin doesn't find the file?