InterviewSolution
Saved Bookmarks
| 1. |
What CLI command would you execute to build an Angular app in production mode? |
|
Answer» ng build --prod The CLI USES a bunch of tools TOGETHER to COMPILE the code files including the HTML, CSS and TS files from individual files into a single bunch which is references in the index.html file as main.js. Most of the work is done during the build time and there is almost nothing left to do at the runtime. The CLI uses a tool called WebPack to achieve the final build that can be DEPLOYED. |
|