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

    [solved] PWA to TWA for playstore need repeated task on every build

    CLI
    1
    2
    161
    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.
    • J
      jitendra16 last edited by jitendra16

      I have submitted my PWA as TWA on google playstore. This requires a folder ‘.well-known’ and a file inside this folder ‘asset-links.json’

      alt text

      How can I include this folder in my src so that it exists on every build command?

      1 Reply Last reply Reply Quote 0
      • J
        jitendra16 last edited by

        Install this package first https://www.npmjs.com/package/npm-run-all

        and use following scripts - ‘compress_sw’ is optional

        "postbuild": "run-s compress_sw mkdir_wellknown copyfile",
                "compress_sw": "terser --compress --mangle --output dist/pwa/service-worker.js -- dist/pwa/service-worker.js",
                "mkdir_wellknown": "mkdir -p /<path to directory>/dist/pwa/.well-known",
                "copyfile": "cp -r /<path to directory>/src/.well-known/assetlinks.json /<path to directory>/dist/pwa/.well-known/assetlinks.json",
                ```
        1 Reply Last reply Reply Quote 0
        • First post
          Last post