'Ionic 6 app keeps building in production mode

I am trying to build my app in development mode and am running this script:

ionic capacitor run ios

But every time it says building in production mode? Am I missing something? Shouldn't it only build production if I use the --prod flag?

enter image description here



Solution 1:[1]

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.

Solution 2:[2]

Check your angular.json configuration file and ensure that configurations is set for dev environments.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ceejayoz
Solution 2 mahen23