Ionic 6 应用程序继续在生产模式下构建

Ionic 6 app keeps building in production mode

我正在尝试在开发模式下构建我的应用程序并且是 运行 这个脚本:

ionic capacitor run ios

但是每次都说在生产模式下构建?我错过了什么吗?如果我使用 --prod 标志,它不应该只构建生产吗?

https://cli.vuejs.org/guide/cli-service.html

vue-cli-service build produces a production-ready bundle in the dist/ directory, with minification for JS/CSS/HTML and auto vendor chunk splitting for better caching. The chunk manifest is inlined into the HTML.

检查您的 angular.json 配置文件并确保为 dev 环境设置了配置。

我发现我需要使用:

ionic capacitor run ios -- --mode development