npm build仍在运行以进行生产

时间:2018-06-05 19:03:45

标签: angular ionic-framework ionic3 angularfire2 angular6

我最近升级了所有依赖节点模块,然后开始面对这个问题。

使用以下命令构建应用程序以进行生产。

npm run ionic:build --prod

然后在低于输出后它根本没有结束。

I:\xxxx>npm run ionic:build --prod
> xxxx@0.0.1 ionic:build I:\xxxxx
> ionic-app-scripts build
[00:25:20]  ionic-app-scripts 3.1.7-201801172029
[00:25:20]  build prod started ...
[00:25:20]  clean started ...
[00:25:20]  clean finished in less than 1 ms
[00:25:20]  copy started ...
[00:25:20]  deeplinks started ...
[00:25:21]  deeplinks finished in 110 ms
[00:25:21]  ngc started ...
[00:25:39]  ngc finished in 18.99 s
[00:25:39]  preprocess started ...
[00:25:39]  preprocess finished in less than 1 ms
[00:25:39]  webpack started ...
[00:25:40]  copy finished in 19.96 s

下面是我的package.json。

  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
    "@angular/cli": "^6.0.5",
    "@angular/common": "^6.0.3",
    "@angular/compiler": "^6.0.3",
    "@angular/compiler-cli": "^6.0.3",
    "@angular/core": "^6.0.3",
    "@angular/forms": "^6.0.3",
    "@angular/http": "^6.0.3",
    "@angular/platform-browser": "^6.0.3",
    "@angular/platform-browser-dynamic": "^6.0.3",
    "@angular/tsc-wrapped": "^4.4.6",
    "@ionic-native/camera": "^4.7.0",
    "@ionic-native/core": "4.3.2",
    "@ionic-native/geolocation": "^4.7.0",
    "@ionic-native/network": "^4.7.0",
    "@ionic-native/splash-screen": "4.3.2",
    "@ionic-native/status-bar": "4.3.2",
    "@ionic/storage": "2.0.1",
    "@types/google-maps": "^3.2.0",
    "animate.css": "^3.6.1",
    "firebase": "^5.0.4",
    "ionic-angular": "3.8.0",
    "ionicons": "3.0.0",
    "rxjs": "^6.2.0",
    "rxjs-compat": "^6.2.0",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.18"
  },
  "devDependencies": {
    "@firebase/app-types": "^0.3.2",
    "@firebase/auth-types": "^0.3.3",
    "@firebase/database-types": "^0.3.2",
    "@firebase/firestore-types": "^0.4.3",
    "@firebase/messaging-types": "^0.2.3",
    "@firebase/storage-types": "^0.2.3",
    "@ionic/app-scripts": "^3.1.7-201801172029",
    "angularfire2": "^5.0.0-rc.9",
    "typescript": "^2.7.2",
    "webpack": "^4.10.2"
  },

请告知需要调整哪些内容以便按照预期进行快速构建。

0 个答案:

没有答案