what is the difference between this guide https://angular.io/guide/aot-compiler that use @angular/compiler-cli and using command ng build --prod (that use options --aot)??
Angular AoT angular compiler cli vs angular-cli
2.7k Views Asked by Nuovo 001 At
1
There are 1 best solutions below
Related Questions in ANGULAR
- Firebase link existing user to anonymous account?
- It doesnt always show all the books on my homepage
- Google adsense ads.txt status cannot be not found
- When I navigate to the URL'http://localhost:4200/', it redirects me back
- Ionic Angular Standalone ion-icon are not showing at all
- How to make Angular understand that view child is of a specific type, not a general ElementRef?
- vscode, debug angular, first time, doesn't debug, 2nd time stops at main.js then it's ok
- How to perform CRUD operations on a static JSON array in Angular? (without API)
- Ngrx props<>() method in createAction()
- How to animate rotation of an image inside input control?
- Detecting click inside and outside of the listening component in Angular
- Angular - type guard not narrowing types
- In node_modules file i am getting Angular genric error while using fontawesome in angular12
- Angular 16 sending null values to API
- GoogleCloud Error: Not Found The requested URL was not found on this server
Related Questions in ANGULAR-CLI
- FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory in angular application
- What is the use of "Hash: fec054139de85795" in ng serve?
- Angular esbuild @angular/compiler missing from bundle file
- Angular build for subfolder
- angular.json : configuration for multiple library projects
- Getting Cannot read property 'polyfillWrapFlushCallback' of undefined
- Unable to install angular-cli on Windows 7 (using npm)
- This version of CLI is only compatible with Angular versions ^15.0.0, but Angular version 17.2.4 was found instead
- angular cli installation cannot be completed
- how can i use yarn with PnP in an already angular project?
- Angular CLI and node-gyp : Cannot assign to read only property 'cflags' of object '#<Object>'
- Angular v10: how do i handle this overlay issue of p-calendar
- Node.js version v16.20.2 detected. The Angular CLI requires a minimum of v18.13
- Angular: How to extract i18n ids from json source files to outpur it in xlf files
- configure Angular app with powers of deployUrl without using due to depreciation warning. (not baseHref)
Related Questions in AOT
- How to enable spring AOT compiling to executable while the project using spring-boot AbstractRoutingDataSource?
- Does the AOT Setting Propagate to Dependent Class Libraries?
- Reflection GetField() not working from GetType(), only typeof(T)
- Project obfuscation along with Native AOT compilation
- Can I use more than 2 cores for a Blazor Wasm AOT Publish Build in VS2022?
- Resource not opening Excel file in ax 2012
- .NET 6 MAUI Release Build Crash at launch on iOS: mono_aot and UINavigationItem Issues
- How to trim dependencies in a .NET MAUI Android app?
- Spring AOT Graalvm Native image with Spring Data Ldap Repository
- Xml Deserialize with Native AOT
- Trying to use Dapper.Aot inside a new .net 8 preview web api aot project and i am getting no definition for query off the sql connection object
- D365 FinOps View Range Error : "Query extended range failure: Expected identifier near pos"
- AOT Compilation Error with System.Data.SQLite.EF6.dll in .NET Maui Blazor Hybrid App
- If you compiled C/Go/Rust or any other compiled language is that not just AOT compilation and if not what is the difference?
- Testing .NET 7 AOT Lambda Function Locally with Visual Studio
Related Questions in ANGULAR-COMPILER-CLI
- After Angular 16 upgrade, throws errors for library mydatepicker and angular2-virtual-scroll not compatible with Angular ivy
- Angular compiler-cli error: Namespace 'ts' has no exported member 'ResolutionMode'
- The requested module does not provide named export for transformAll, THIS_EXPR from @angular/compiler
- angular/compiler-cli peer dependencies
- Cannot read property 'text' of undefined at NodeObject.getText at getRequiredModulePath
- Enable debug logs in `ng build`
- Angular 11 - ng serve - Option "sourceMap" is deprecated
- Properly preprocess Angular Components and Templates
- Getting "An unhandled exception occurred: Cannot find module '@angular/compiler-cli' when trying to run "ng serve"
- 'ngcc' not recognized as internal or external command
- How to fix Angular 11 'Option "progress" is deprecated'?
- How to use file replacements in Angular 10
- Angular 8 compile Issue
- Issue with installing angular compiler
- Angular 9: failed to build an angular library in v9.1.0 which dependes on other angular library
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The Angular CLI takes care of more than just compiling your files for AOT.
Along with the AOT compilation, using
ng build -prodwill also minify, uglify, (partially) eliminate dead code, and bundle your application appropriately (including lazy loaded bundles).Side note:
You can also use the
--build-optimizerflag to further optimize your code. It will remove the vendor bundle, but your overall bundle size should be smaller. This flag is experimental right now and will eventually (hopefully) be moved into the-prodflag. One of the noticeable reasons it's not is that it makes compilation longer.