Skip to content

@angular-devkit/build-angular@0.13.8 breaks ng e2e --prod when budget #14100

Closed
@mboughaba

Description

@mboughaba

🐞 Bug report

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [x] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Is this a regression?

Yes

Yes, the previous version in which this bug was not present was: 0.12.4

Description

A clear and concise description of the problem...

after upgrading to @angular-devkit/build-angular@0.13.8, ng e2e --prod stopped working.
In angular/cli we setup budgets with maximumWarning and maximumError.

When running ng e2e --prod --port 4201 the budget errors out and the build/serve which should be triggered by ng n2e fails.

We get error in budget because e2e production build is not at the same level of optimization as the real production build.

🔬 Minimal Reproduction

🔥 Exception or Error




failed to compile

🌍 Your Environment




λ ng version                                                           
                                                                       
     _                      _                 ____ _     ___           
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|          
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |           
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |           
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|          
                |___/                                                  
                                                                       
                                                                       
Angular CLI: 7.3.7                                                     
Node: 11.13.0                                                          
OS: win32 x64                                                          
Angular: 7.2.11                                                        
... common, compiler, compiler-cli, core, forms, http                  
... language-service, platform-browser, platform-browser-dynamic       
                                                                       
Package                           Version                              
-----------------------------------------------------------            
@angular-devkit/architect         0.13.7                               
@angular-devkit/build-angular     0.13.8                               
@angular-devkit/build-optimizer   0.13.8                               
@angular-devkit/build-webpack     0.12.4                               
@angular-devkit/core              7.3.7                                
@angular-devkit/schematics        7.3.7                                
@angular/cli                      7.3.7                                
@ngtools/webpack                  7.3.8                                
@schematics/angular               7.3.7                                
@schematics/update                0.13.7                               
rxjs                              6.4.0                                
typescript                        3.2.4                                
webpack                           4.6.0                                
                                                                       

Anything else relevant?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions