richardtallent / vite-plugin-singlefile

Vite plugin for inlining JavaScript and CSS resources
MIT License
808 stars 53 forks source link

Adds new deleteInlinedFiles setting #62

Closed jaerod95 closed 1 year ago

jaerod95 commented 1 year ago

Hi @richardtallent! Here's a quick PR to add support for allowing the user to choose whether or not to delete the inlined files. In my case, I need to skip deleting the inlined files so source maps can be generated for them and uploaded to Sentry. I updated the README to explain the new setting and defaulted it to true to keep the existing functionality the same. Thank you for the great plugin!