quasar.conf.js is just a standard JavaScript export of an object. So what you are asking in JS 101 stuff and not specific to Quasar at all. Use a ternary, ‘if’ variables out side the return, and then reference them inside it, or any other way you would do something like this for anything is JavaScript.