Shaking a tree with webpack and typescript

I am trying to reduce the weight of my angular 2 application.

I use typescript (1.8.10) and webpack (1.13) as bundles of modules.

I have included all my ts files. I turned on gzip compression on my server and now I want to use tree shake, but I did not find a loader or the like to use it in my project. I found the extension module loader, but I do not want to change my provider module (I think the web package is better for me).

Does anyone know how to use tree shake using a web package?

Thank!

+4
source share
1 answer

Webpack 2 TypeScript 2 - UglifyJSPlugin . , , . , : http://blog.rangle.io/optimize-your-angular2-application-with-tree-shaking/

+2

All Articles