How to remove debug code from js files when building using vite
I am trying to add js debug code for my library built in vue3 and i want it to be automatically removed when building to production using a separate vite.config.js file. The debug code can be sandwiched in specific comment lines like this : /* ------------test---------- */ console.log("this is a testing test"); /* ------------test---------- */ is there a way to do that in vite configuration, or which special plugins or i will need to manually open files and remove those code snippets with a node script before the compilation
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.