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

    Icons not visible on build

    Help
    4
    5
    2669
    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.
    • S
      srmcguirt last edited by

      Using a quasar cli generated project that hasn’t any webpack changes, icons don’t display distributed on a remote server.

      When I’m in dev everything runs fine and icons display, but soon as I build and serve the distribution folder on Azure it displays only the icon names. Serving it local with quasar works fine as well.

      Any ideas what might be the problem?
      Thanks

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

        Check the publicPath in /config/index.js for production. Depends on what mode you use Vue Router on.

        1 Reply Last reply Reply Quote 0
        • S
          srmcguirt last edited by srmcguirt

          I’m using hash mode and it’s set as:

          publicPath: ’ ',

          The CSS and JS loads ok but the material icons don’t load. I tried manually using MDI and it loaded ok, just not using the quasar <i> tag formats.

          1 Reply Last reply Reply Quote 0
          • S
            silentcoast last edited by silentcoast

            Did you resolve this srmcguirt? I was having the same issue but was just I wasnt adding the mimemap in the web.config on Azure.

            <mimeMap fileExtension=“woff” mimeType=“application/font-woff” />

            1 Reply Last reply Reply Quote 0
            • A
              aweston5 last edited by

              Hi, I’m having the same problem deploying to Azure. To fix this, I think I need to add a web.config file like below.
              How can I add a static file like this to the root?
              I can’t figure out how to add an extra file this in quasar.config.
              It keeps getting deleted if I just add it to the dist folder myself.
              Thanks
              –Andy

              <?xml version=“1.0”?>
              <configuration>
              <system.webServer>
              <staticContent>
              <remove fileExtension=".woff"/>
              <mimeMap fileExtension=".woff" mimeType=“application/font-woff” />
              <remove fileExtension=".woff2"/>
              <mimeMap fileExtension=".woff2" mimeType=“font/woff2” />
              </staticContent>
              </system.webServer>
              </configuration>

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