Skip to content

use command ng build --prod and ng build --prod --aot,come to the same thing #6868

@dczxw

Description

@dczxw

Bug Report or Feature Request (mark with an x)

   "ng": "ng",
    "build": "ng build --prod --aot",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e",

Versions.

angular-cli: 1.0.0-beta.28.3
node: 8.0.0
os: win32 x64
@angular/animations: 4.2.5
@angular/common: 4.2.5
@angular/compiler: 4.2.5
@angular/core: 4.2.5
@angular/forms: 4.2.5
@angular/http: 4.2.5
@angular/material: 2.0.0-beta.7
@angular/platform-browser: 4.2.5
@angular/platform-browser-dynamic: 4.2.5
@angular/router: 4.2.5
@angular/cli: 1.0.0-beta.28.3
@angular/compiler-cli: 4.2.5

Repro steps.

I want to use this angular-cli for AOT,but when I use this command "ng build --prod" or "ng build -- prod --aot",they come to same things;The two file sizes are the same;

And angular-cli need to set somethings for --aot ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions