Skip to content

ng build console output shows different chunk sizes than is actually created #3565

Closed
@mdcotter

Description

@mdcotter

OS?

Mac OSX (El Capitan)

Versions.

angular-cli: 1.0.0-beta.22-1
node: 6.9.2
os: darwin x64

Repro steps.

Updated to the latest angular-cli version
ran ng build --prod --env=stg --aot --no-sourcemap
compared ng output to ls -lh ./dist/

Output logs

ng build output
ls -lh ./dist output

Problem

Noticed that the ng build output displays the size as almost double of what is actually created. i.e it says the the 0.***.chunk.js is 2.06MB, but the file produced s only 938k. More the 2x the actual size.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions