In my Angular2 application (ES6 spec), I am using WebPack with a common config which is extended in dev and prod config. In my prod config, I would like to also use uglification after doing tree shaking.
How do I make it happen? Any sample/link to configure this would be great help.
Would UglifyJsPlugin
work with ES6 script? Would it need ES6-Shim
?
Is it necessary to use Rollup for tree shaking? Should I completely shift to RollUp for the same?
Sorry, for a loaded question. Many thanks in advance!