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

    Add manifest.json - done

    Help
    1
    2
    1595
    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.
    • G
      glittle last edited by glittle

      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”?

      1 Reply Last reply Reply Quote 0
      • G
        glittle last edited by

        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…

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