Build Variants with Ionic


#1

Does Ionic/Cordova support build variants (like targets in Xcode or Product Flavors in Gradle)? I need to create Lite and Paid version off the same code base.


#2

There is no out of the box solution, but one I have buried in my bookmarks is this: http://roblouie.com/article/296/ionic-2-environment-variables-the-best-way/ If you google a bit you will find some more blog posts offering ideas for solutions.


#3

@jd048 See if this post helps: https://codeburst.io/tips-and-tricks-if-you-really-want-to-use-ionic-part-2-bc20e7122433