DEV vs Production code in quasar 0.15 ?
-
I can not find an alternative to DEV vs Production code in quasar 0.15.
For example, how to do something like this:let string = DEV ? 'I am running on dev' : 'I am running on production';
-
you can use process.env.DEV in your script part in vuejs components!
-
Full list: https://github.com/quasarframework/quasar-cli/blob/dev/lib/quasar-config.js#L233-L238
Accessible under process.env — mind that you can add your own too, it’s in docs how.