Oleg
Member since Apr 4, 2017
- Profile: /members/13487-oleg.htm
- URL: https://medium.com/@OlegVaraksin
- Comments: 4
Recent Blog Comments By Oleg
-
Building JavaScript Demos With TypeScript 2.2.1, Webpack 2, And Angular 2.4.9
Posted on Apr 5, 2017 at 8:51 AM
@Ben, Yes, splitting ist very important. You can achieve that with AggressiveSplittingPlugin https://github.com/webpack/webpack/tree/master/examples/http2-aggressive-splitting This also was my idea when I tried to split merged polyfills and vendor files. Saidy, but it doesn't work with HtmlWebpac... read more »
-
Building JavaScript Demos With TypeScript 2.2.1, Webpack 2, And Angular 2.4.9
Posted on Apr 5, 2017 at 5:59 AM
I've created the project with Angular 4 by setting --ng4 flag ( https://github.com/angular/angular-cli/wiki/new ): ng new --ng4 mydemoproject And I can not see vendor.ts. It's here https://github.com/ova2/angular-development-with-primeng/tree/master/chapter1/primeng-angularcli-setup... read more »
-
Building JavaScript Demos With TypeScript 2.2.1, Webpack 2, And Angular 2.4.9
Posted on Apr 4, 2017 at 2:10 PM
@Colin - Agree. And Angular CLI only generates main.ts and polyfills.ts :-) No vendor.ts.... read more »
-
Building JavaScript Demos With TypeScript 2.2.1, Webpack 2, And Angular 2.4.9
Posted on Apr 4, 2017 at 4:56 AM
Ben, I know, mostly tutorials show splitting polyfills and vendor files in two separate entry points. But if you have two bundles, Tree-Shaking will not work properly. AFAIK, you need one entry point for both polyfills and vendor files, so that Webpack can statically analyze used and not used export... read more »