RC0 Include configurations for dev and prod


#1

Hi,
In beta 11, I was using a config file to define some variables in my application.
This config file (config.ts) is simply a copy of config.debug.ts or config.prod.ts (copied by a gulp script before the build).
I thus simply import that config file with import {Config} from 'config.ts'.

Is it possible to have a similar mechanism with the new build process of Ionic 2 RC0 ?

Thanks !


#2

Read the ionic-app-scripts README, especially the bit about ionic_copy and the IONIC_ENV variable.


#3

Thanks It helped a lot !


#4

@Gp2mv3 can you give me a hand on how you fixed this please ? i’m in the exact situation you was.