Skip to content

larger bundle size after upgrading to Angular 5.0.0 and uglify/minify not working. #8280

Closed
@isaklafleur

Description

@isaklafleur

Bug Report or Feature Request (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request

Versions.

ngular CLI: 1.5.0
Node: 8.6.0
OS: darwin x64
Angular: 5.0.0
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router

@angular/cli: 1.5.0
@angular-devkit/build-optimizer: 0.0.32
@angular-devkit/core: 0.0.20
@angular-devkit/schematics: 0.0.35
@ngtools/json-schema: 1.1.0
typescript: 2.4.2
webpack: 3.8.1

Repro steps.

ng build prod / ng build prod --aot

The log given by the failure.

Desired functionality.

I read the release note and it was "promised" smaller bundle size. Before upgrading from Angular 4.2.4 to 5.0.0 I created two different prod build one with --aot and another without.

After upgrading to 5.0.0 and angular cli 1.5 I changed to HttpClientModule and HttpClient to get my application to working again. This was the only change I did. I run again ng build prod and ng build prod --aot and I see a larger vendor bundle size. I'm doing something wrong?

This is the the repo I used to test build size.

Also how do I get minfy/ungly working on Angular 5? I thought this was done automatic on ng build prod.

Mention any other details that might be useful.

Screenshots.

Angular 4.2.4 build sizes

Angular 5.0.0 build sizes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions