Style background-image dont get publicPath

  • 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)

  • Admin

    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 and make sure you understand all of it.

Log in to reply