4

I recently working with Angular 6 and find out that Angular CLI embed all HTML and CSS file into a js file named main.js. I think it's not optimization, after a while you have a big main.js file.

In angularjs we had ocLazy that works very simple. I know that we have Lazy in angular 6 but this feature embed HTML and CSS files too.

What is PROS and CONS of embedding all Controller + HTML + CSS file into a js file?

Mohamad Shiralizadeh
  • 8,329
  • 6
  • 58
  • 93

0 Answers0