Skip to content

rebuild time depends on assets  #20244

Closed
@montella1507

Description

@montella1507

Versions:

"@angular/animations": "^11.0.4",
   "@angular/cdk": "^11.0.2",
   "@angular/common": "^11.0.4",
   "@angular/compiler": "^11.0.4",
   "@angular/core": "^11.0.4",
   "@angular/forms": "^11.0.4",
   "@angular/localize": "^11.0.4",
   "@angular/platform-browser": "^11.0.4",
   "@angular/platform-browser-dynamic": "^11.0.4",
   "@angular/router": "^11.0.4"
  "@angular-devkit/build-angular": "^0.1100.4",
   "@angular-eslint/eslint-plugin": "0.8.0-beta.5",
   "@angular-eslint/eslint-plugin-template": "0.8.0-beta.5",
   "@angular-eslint/template-parser": "0.8.0-beta.5",
   "@angular/cli": "^11.0.4",
   "@angular/compiler-cli": "^11.0.4",
   "@angular/language-service": "^11.0.4",

Rebuild time is somehow affected by assets in angular.json - here are table with times with and without assets:

   "assets": [
              "apps/edhance/src/favicon.ico",
              "apps/edhance/src/assets",
              "apps/edhance/src/config.json",
              {
                "glob": "**/*",
                "input": "apps/edhance/configs",
                "output": "./configs/"
              }
            ],

image

Difference in first build is comprehensible (to copy static - immutable assets to serve folder), however, why is so big difference in rebuild time when i change typescript file?

image

(another project)
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions