Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70974

Ionic serve using production environment - which I don't want

$
0
0

@Tommertom wrote:

Hi,

when I run ionic serve -w chrome, it uses environment.prod.ts instead of environment.ts

I tried tweaking in angular.json, the part of fileReplacements in configuration to see if that is part of the issue, but does not seem to be.

The “serve” part in angular.json shows a configuration,production key, but I assume that one is only triggered when using --prod flag (which I don’t use).

WHen I run ionic serve -w chrome --prod, it does show ng.cmd run app:serve:production --host=localhost --port=8100, (whereas without --prod it shows ng.cmd run app:serve --host=localhost --port=8100)

What am I doing wrong here? Any hints?

I am not very comfortable changing much of the scripts parts for a nearly production app, so any help will be appreciated.

Thx
Tom

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70974

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>