Shashi Mallah
Shashi Mallah

Reputation: 6

reducing the build time of an angular project with more than 3000 components in my application

**I want to reduce the build time for my angualar project. I have more than 3000 components present in my application.

console output:

chunk {core.module} core.module.chunk.js () 69.9 MB  [rendered]
chunk {inline} inline.bundle.js (inline) 5.79 kB [entry] [rendered]
chunk {main} main.bundle.js (main) 2.76 MB [initial] [rendered]
chunk {polyfills} polyfills.bundle.js (polyfills) 1 MB [initial] [rendered]
chunk {scripts} scripts.bundle.js (scripts) 872 kB [initial] [rendered]
chunk {styles} styles.bundle.js (styles) 680 kB [initial] [rendered]
chunk {vendor} vendor.bundle.js (vendor) 13.8 MB [initial] [rendered]

Upvotes: 0

Views: 217

Answers (1)

Liu Zhang
Liu Zhang

Reputation: 1836

That's the really big problem. You need to implement different technologies.

  1. Lazy Load your modules
  2. Enable strict mode
  3. Optimize your code, modularity and so on.

All depends on you.

Upvotes: 1

Related Questions