更新到v8.0.0时,角度构建时间太慢

时间:2019-06-11 05:47:38

标签: angular8

更新时超级慢的构建为何其缓慢的内存转储以及其他任何窗口也会卡住package.json

   "dependencies": {
    "@angular/animations": "^8.0.0",
    "@angular/cdk": "^8.0.0",
    "@angular/common": "^8.0.0",
    "@angular/core": "^8.0.0",
    "@angular/flex-layout": "^8.0.0-beta.26",
    "@angular/forms": "^8.0.0",
    "@angular/material": "^8.0.0",
    "@angular/platform-browser": "^8.0.0",
    "@angular/platform-browser-dynamic": "^8.0.0",
    "@angular/router": "^8.0.0",
    "core-js": "^2.5.4",
    "font-awesome": "^4.7.0",
    "intl": "^1.2.5",
    "rxjs": "^6.5.2",
    "tar": "^4.4.8",
    "zone.js": "^0.9.1"
  }, 

 "devDependencies": {
        "@angular-devkit/build-angular": "^0.800.0",
        "@angular-devkit/build-optimizer": "^0.800.0",
        "@angular/cli": "^8.0.0",
        "@angular/compiler": "^8.0.0",
        "@angular/compiler-cli": "^8.0.0",
        "@types/angular": "^1.6.54",
        "@types/angular-route": "^1.3.5",
        "@types/quill": "^2.0.2",
        "hammerjs": "^2.0.8",
        "quill": "^1.3.6",
        "typescript": "^3.4.5"
      }
    } 

在升级到angular 8时,构建时间太慢了,谁能建议提高

npm run build -- --c --prod

0 个答案:

没有答案