No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    DEV vs Production code in quasar 0.15 ?

    Framework
    3
    3
    951
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      abdelaziz18003 last edited by

      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';
      
      1 Reply Last reply Reply Quote 0
      • M
        Max last edited by Max

        you can use process.env.DEV in your script part in vuejs components!

        1 Reply Last reply Reply Quote 0
        • rstoenescu
          rstoenescu Admin last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post