Is there a way to tell whether --debug is on in a component?
-
Or for that matter to access all the quasar ctx properties accessible in quasar.conf.js in a component?
I want to call a different API (call to localhost) when the application is built using debug mode.
-
E.g. is there something like this.$q.platform.is.debug?
-
Or even better, is there a way to use conditional compilation in vue components depending on the ctx properties in quasar.conf.js?
-
I found the solution, it’s to use process.env.