Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
pepe56
· 8y ago · 0 comments
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?
Comments
[–]
jonluca
8y ago
Webpack does dead code elimination through UglifyJS, see here
https://webpack.js.org/guides/tree-shaking/