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

    How to make environment variables from DOTENV quasar app extension available in scss file

    Framework
    2
    4
    452
    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.
    • M
      Moon last edited by

      How to use var(e.g. assetsUrl) from env file loaded by DOTENV - Quasar Framework app extension in scss file?

      1 Reply Last reply Reply Quote 0
      • Hawkeye64
        Hawkeye64 last edited by

        It will be in your app as process.env.assetsUrl (assuming you set it in your .env file - as for accessing via SCSS I have not done that, but you can google it.

        M 1 Reply Last reply Reply Quote 0
        • M
          Moon @Hawkeye64 last edited by

          @Hawkeye64 I have done it before I posted here sir. Could you plz help me dropping the link if you find one.

          1 Reply Last reply Reply Quote 0
          • Hawkeye64
            Hawkeye64 last edited by

            @Moon
            https://css-tricks.com/getting-javascript-to-talk-to-css-and-sass/
            https://dev.to/tauri/use-sass-variables-in-javascript-583o

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