I have a JavaScript file with numerous comments and unnecessary spaces, making it larger and slowing down the website. I am seeking a solution to minify the file when starting the server, while still being able to edit the original file in my IDE. Essentially, I want the browser to see the minified version when viewing the page source, but I should still have access to the commented version in my development environment. Is there an npm package or method available to achieve this?