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

    Style background-image dont get publicPath

    Help
    2
    2
    2760
    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.
    • L
      leon last edited by leon

      Hi. I have an app that on produciton must be served over ‘App’ domain name.
      Have this code

      background-image: url('/statics/fundo4.jpg'); (if use statics/fundo4, style loader gives error not found)
      

      On quasar.config i use

      publicPath: '/App' 
      

      It works for img src perfect. (/App/statics/fundo4.jpg)

      But for vue style, dont. (/statics/fundo4.jpg)

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

        This is a limitation of Webpack and nothing Quasar can do for you unfortunately. Have you considered moving to assets to let Webpack deal with it? Also please read http://quasar-framework.org/guide/app-handling-assets.html and make sure you understand all of it.

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