Hacker News new | ask | show | jobs
by pepe56 3009 days ago
How would you actually strip unneeded javascript anyways? Let's imagine I have a setup like the OP and want to optimize it. Is there something, that would be able to strip down all JS functions, that are not needed by the site?
1 comments

Webpack does dead code elimination through UglifyJS, see here https://webpack.js.org/guides/tree-shaking/