Angular-cli: Compress production build

Created on 22 Feb 2017  路  4Comments  路  Source: angular/angular-cli

OS?

Windows 10

Versions.

@angular/cli: 1.0.0-beta.32.3
node: 6.9.5
os: win32 x64
@angular/common: 2.4.8
@angular/compiler: 2.4.8
@angular/core: 2.4.8
@angular/forms: 2.4.8
@angular/http: 2.4.8
@angular/platform-browser: 2.4.8
@angular/platform-browser-dynamic: 2.4.8
@angular/router: 3.4.8
@angular/cli: 1.0.0-beta.32.3
@angular/compiler-cli: 2.4.8

Repro steps.

  • ng new
  • ng build -t=production -e=prod

The log given by the failure.

Mention any other details that might be useful.

dist folder contains .js files but js.gzip files are missing.

Most helpful comment

@Ionaru @Anufriev and how do we do the compression now from cli ?
using Angular + Material 2, with ng build --prod --aot my simple app still produce total size of 1.3MB.
*super-noobie here

All 4 comments

"@angular/cli: compressed output (.gz) is no longer generated on production builds."

From the changelog: https://github.com/angular/angular-cli/blob/master/CHANGELOG.md#100-beta32-2017-02-17

Thanks. I missed it.

@Ionaru @Anufriev and how do we do the compression now from cli ?
using Angular + Material 2, with ng build --prod --aot my simple app still produce total size of 1.3MB.
*super-noobie here

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings