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

    [solved] QIcon using SVG file and quasar build

    Help
    q-icon
    2
    3
    1089
    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
      mstarr last edited by mstarr

      Hi,
      I was having trouble getting quasar build to work properly when using QIcon with the name property, like this:

      <q-icon name="img:assets/checkbook.svg"/>
      

      The problem is that the file checkbook.svg was not being copied to the dist folder.

      I finally solved it by putting my SVG file in the statics folder instead of assets, but I don’t really understand why that works. Is this normal behavior?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        @mstarr - Yes. It’s normal behavior. All assets not needing some sort of processing need to go into the statics folder.

        https://quasar.dev/quasar-cli/cli-documentation/handling-assets#Introduction

        Scott

        M 1 Reply Last reply Reply Quote 1
        • M
          mstarr @s.molinari last edited by

          @s-molinari ok, thanks for answering. I missed that on the documentation somehow.

          Cheers!

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