Ask HN: How do you minify JavaScript in 2022?
https://news.ycombinator.com/item?id=31313619I am making a zero-dependency JavaScript project in VanillaJS. There's no build step. You can just run a static server and load an HTML that loads that javaScript.
Still, I want to minify and obfuscate the source to reduce bundle size. In essence, this is a build step. What's the best way to Node.js package to do this in 2022 that doesn't address 20 other problems like module bundling and TypeScript compilation?