ionic-team / ionic-team/ionic-cli
ionic build --prod does not create an angular production build
- 主要語言
- TypeScript
- 星號
- 2k
- 分支
- 682
- PR 合併指標
- 30 天內沒有已合併 PR
描述
**Description:**
When running `ionic build --prod`, the Angular project is not being built in production mode, but rather in development mode instead.
**Steps to Reproduce:**
Run `ionic build --prod`
**Output:**
```
npm run ionic:build -- --configuration=production --project=app
@0.0.1 ionic:build
npm run build --configuration=production --project=app
@0.0.1 build
ng build
```
**My `ionic info`:**
```
Ionic:
Ionic CLI : 7.0.1 (/Users/twkl/.npm-global/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 7.0.7
@angular-devkit/build-angular : 16.0.2
@angular-devkit/schematics : 16.0.2
@angular/cli : 16.0.2
@ionic/angular-toolkit : 9.0.0
Capacitor:
Capacitor CLI : 5.0.3
@capacitor/android : not installed
@capacitor/core : 5.0.3
@capacitor/ios : 5.0.3
Utility:
cordova-res : 0.15.4
native-run : 1.7.2
System:
NodeJS : v16.19.1 (/usr/local/bin/node)
npm : 8.19.3
OS : macOS Unknown
```
**Other Information:**
The build process should be running `ng build --configuration=production` instead of just `ng build` as in the output
貢獻指南
研究方向
Start by tracing how `ionic build --prod` forwards arguments to the project’s `ionic:build` and `build` scripts, using the reported command output as the expected path. The issue is done when the generated build command invokes `ng build --configuration=production` rather than only `ng build`.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- angular, typescript
- 領域
- build-system, cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 35/100