Sample for Angular 2 AOT Compilation with Webpack/Rollup and Tree Shaking
September 18, 2016 ยท View on GitHub
Build
To build the sample for Webpack2+JIT, Webpack2+AOT and Rollup+AOT run this npm script:
npm run build-all
Start
npm start
After starting the server and the browser, run one of the following index-files. Each of them starts one of the above mentioned scenarios:
- index.jit.html (Webpack build + JIT)
- index.aot.html (Webpack build + AOT)
- index.rollup.aot.html (Rollup + AOT)