question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ng build outfile very big, how to mini

See original GitHub issue

win32 64bit angular2 ng build

directory vendor size 16.3 MB

tree vendor

├─@angular
│  ├─common
│  │  ├─esm
│  │  │  ├─src
│  │  │  │  ├─directives
│  │  │  │  ├─facade
│  │  │  │  ├─forms
│  │  │  │  │  └─directives
│  │  │  │  ├─location
│  │  │  │  └─pipes
│  │  │  └─testing
│  │  ├─src
│  │  │  ├─directives
│  │  │  ├─facade
│  │  │  ├─forms
│  │  │  │  └─directives
│  │  │  ├─location
│  │  │  └─pipes
│  │  └─testing
│  ├─compiler
│  │  ├─esm
│  │  │  ├─src
│  │  │  │  ├─expression_parser
│  │  │  │  ├─facade
│  │  │  │  ├─output
│  │  │  │  ├─schema
│  │  │  │  └─view_compiler
│  │  │  └─testing
│  │  ├─src
│  │  │  ├─expression_parser
│  │  │  ├─facade
│  │  │  ├─output
│  │  │  ├─schema
│  │  │  └─view_compiler
│  │  └─testing
│  ├─core
│  │  ├─esm
│  │  │  ├─src
│  │  │  │  ├─change_detection
│  │  │  │  │  └─differs
│  │  │  │  ├─debug
│  │  │  │  ├─di
│  │  │  │  ├─facade
│  │  │  │  ├─linker
│  │  │  │  ├─metadata
│  │  │  │  ├─profile
│  │  │  │  ├─reflection
│  │  │  │  ├─render
│  │  │  │  ├─testability
│  │  │  │  ├─util
│  │  │  │  └─zone
│  │  │  └─testing
│  │  ├─src
│  │  │  ├─change_detection
│  │  │  │  └─differs
│  │  │  ├─debug
│  │  │  ├─di
│  │  │  ├─facade
│  │  │  ├─linker
│  │  │  ├─metadata
│  │  │  ├─profile
│  │  │  ├─reflection
│  │  │  ├─render
│  │  │  ├─testability
│  │  │  ├─util
│  │  │  └─zone
│  │  └─testing
│  ├─http
│  │  ├─esm
│  │  │  ├─src
│  │  │  │  ├─backends
│  │  │  │  └─facade
│  │  │  └─testing
│  │  ├─src
│  │  │  ├─backends
│  │  │  └─facade
│  │  └─testing
│  ├─platform-browser
│  │  ├─esm
│  │  │  ├─src
│  │  │  │  ├─animate
│  │  │  │  ├─browser
│  │  │  │  │  ├─location
│  │  │  │  │  └─tools
│  │  │  │  ├─dom
│  │  │  │  │  ├─debug
│  │  │  │  │  └─events
│  │  │  │  ├─facade
│  │  │  │  └─security
│  │  │  └─testing
│  │  ├─src
│  │  │  ├─animate
│  │  │  ├─browser
│  │  │  │  ├─location
│  │  │  │  └─tools
│  │  │  ├─dom
│  │  │  │  ├─debug
│  │  │  │  └─events
│  │  │  ├─facade
│  │  │  └─security
│  │  └─testing
│  ├─platform-browser-dynamic
│  │  ├─esm
│  │  │  ├─src
│  │  │  │  ├─facade
│  │  │  │  └─xhr
│  │  │  └─testing
│  │  ├─src
│  │  │  ├─facade
│  │  │  └─xhr
│  │  └─testing
│  ├─router
│  │  ├─esm
│  │  │  ├─src
│  │  │  │  ├─directives
│  │  │  │  ├─facade
│  │  │  │  └─metadata
│  │  │  └─testing
│  │  ├─src
│  │  │  ├─directives
│  │  │  ├─facade
│  │  │  └─metadata
│  │  └─testing
│  └─router-deprecated
│      ├─esm
│      │  └─src
│      │      ├─directives
│      │      ├─facade
│      │      ├─lifecycle
│      │      ├─route_config
│      │      └─rules
│      │          ├─route_handlers
│      │          └─route_paths
│      └─src
│          ├─directives
│          ├─facade
│          ├─lifecycle
│          ├─route_config
│          └─rules
│              ├─route_handlers
│              └─route_paths
├─@angular2-material
│  ├─button
│  ├─card
│  ├─checkbox
│  ├─core
│  │  ├─annotations
│  │  ├─async
│  │  ├─gestures
│  │  ├─live-announcer
│  │  ├─overlay
│  │  │  └─position
│  │  ├─portal
│  │  └─rtl
│  ├─grid-list
│  ├─icon
│  ├─input
│  ├─list
│  ├─progress-bar
│  ├─progress-circle
│  ├─radio
│  ├─sidenav
│  └─toolbar
├─bootstrap
│  ├─dist
│  │  ├─css
│  │  └─js
│  │      └─umd
│  └─grunt
├─es6-shim
├─jquery
│  └─dist
├─ng2-cookies
│  └─src
│      └─services
├─ng2-resource-rest
├─reflect-metadata
│  └─temp
│      └─test
│          └─reflect
├─rxjs
│  ├─add
│  │  ├─observable
│  │  │  └─dom
│  │  └─operator
│  ├─bundles
│  ├─observable
│  │  └─dom
│  ├─operator
│  ├─scheduler
│  ├─src
│  ├─symbol
│  ├─testing
│  └─util
├─systemjs
│  └─dist
├─tether
│  └─dist
│      ├─css
│      └─js
└─zone.js
    └─dist

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
prithviraju1369commented, Dec 28, 2016

@filipesilva when i do ng build -prod --aot, vendor bundle file size is still 1.4mb, can’t we reduce the size further ?

0reactions
angular-automatic-lock-bot[bot]commented, Sep 6, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 2 Production build file is large - Stack Overflow
I have just created a new angular app using "ng new appName" and put in some buttons (from ng ...
Read more >
How to build an Angular 8 app from scratch in 11 easy steps
How to build an Angular 8 app from scratch in 11 easy steps · Step 1 — Installing Angular CLI 8 · Step...
Read more >
The Best Way To Architect Your Angular Libraries
Step by step guide to create our library from scratch · Generate new Angular CLI workspace (without default application) ng new angular-library- ...
Read more >
ng build - Angular
Option Description Value Type Default Value ‑‑aot Build using Ahead of Time compilation. boolean true ‑‑base‑href Base url for the application being built. string ‑‑delete‑output‑path Delete...
Read more >
Angular: Watch Build for Changes - JavaScript in Plain English
However, when you build and deploy the code, you use the ng build command, which packages the application into a few files in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found