These are chat archives for AngularClass/angular2-webpack-starter

8th
Feb 2017
akbhartomo
@akbhartomo
Feb 08 2017 09:43
@indahouse-aleksandr thank you bro
Vladimir Tolstikov
@bobrosoft
Feb 08 2017 10:11

hi there! Can you explain me a little on Webpack 2 and tree-shaking regarding Angular 2 (AngularClass seed is used)? I included @angular/material and using only one component from it atm. Did AoT production build and analyzing it now and I see whole @angular/material is there https://www.dropbox.com/s/30svnjoowxca91o/Screenshot%202017-02-08%2013.35.01.png?raw=1

So, questions is: is webpack's tree-shaking working but just not so intelligent to exclude all unused code? or rollup.js should be used to do proper tree-shaking?