Nativescriptvue application flavors


#1

is possible to compile application flavors with nativescriptvue ?


#2

Sorry, I’m not sure what exactly you are talking about - is it android’s application flavors?


#3

exactly

ex:
https://developer.android.com/studio/build/build-variants?hl=pt-br


#4

May I know what the purpose for it with Vue app? Can you give an example what exactly you are trying to achieve?


#5

We are using nativescriptvue. How can we create a whitelabel version, same app, but diferent packages/images and colors, as we do with flavours in Android


#6

Use environment variables, for example if you want to connect to different end points, set a environment variable during build time.

https://docs.nativescript.org/performance-optimizations/bundling-with-webpack#nativescript-cli-commands

For images & other assets, you may simply write a JavaScript hook which will copy the right set of images to resources during build.