Add manifest.json - done



  • Using Quasar, how do I serve the “manifest.json” file from the root of the site?

    I can add any of these to the index.html file:

      <link rel="manifest" href="manifest.json" />
      <link rel="manifest" href="/manifest.json" />
      <link rel="manifest" href="./manifest.json" />
    

    but the browser cannot find the manifest.json file.

    I came across https://github.com/mariusGundersen/w3c-manifest-loader which looks great, except that it requires a modification to the “webpack config file”, and there is none that I find in the Quasar template.

    So, is there a “simple” way to serve a file from the “root”? If not, how can I implement the “w3c-manifest-loader”?



  • It seems that the actual file does not need to be in the root of the site. That is a requirement for service workers, but not the manifest file.

    So this works…

    Index.html

     <link rel="manifest" href="/statics/manifest.json" />
    

    and put the manifest.json file in the “src/statics” folder.

    This doesn’t solve the problem of serving a file from the “root” for a service worker, but that’s another question…


Log in to reply
 

Looks like your connection to Quasar Framework was lost, please wait while we try to reconnect.