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

    How to use Quasar to build a Multi Page Application

    Help
    4
    6
    2134
    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.
    • S
      Smore last edited by

      As I learned the documentation, I know Quasar could do SPA. My question is can it be used for a multi page application, in this way, let the backend control the router.

      1 Reply Last reply Reply Quote 0
      • Akaryatrh
        Akaryatrh last edited by

        I’m not sure to understand what you want to achieve, but you may have a look on SSR & vuejs (https://ssr.vuejs.org/). Unfortunately SSR support seems not ready yet for Quasar: https://github.com/quasarframework/quasar-template-ssr

        S 1 Reply Last reply Reply Quote 0
        • S
          Smore @Akaryatrh last edited by

          @akaryatrh Yeah, I think your answer is what I mean. THX.

          1 Reply Last reply Reply Quote 0
          • qyloxe
            qyloxe last edited by

            Maybe you can set up a reverse proxy serving single html pages from SPA on the backend. Well, that would be a wild configuration.

            1 Reply Last reply Reply Quote 0
            • T
              tohagan last edited by tohagan

              1. Create a new project using @vue/cli (Vue3)
              2. Add as Quasar a plug in ( https://quasar.dev/start/vue-cli-plugin) - Enable Quasar tree-shaking (recommended)
              3. Configure Vue 3 to generate multiple pages using multi page mode https://cli.vuejs.org/config/#pages
                • This will generate a separate HTML page that references generated tree-shaken JS files for each entry point.
              qyloxe 1 Reply Last reply Reply Quote 1
              • qyloxe
                qyloxe @tohagan last edited by

                @tohagan thanks for idea - this may be this specific use case, when one should prefer using vue-cli and quasar in plugin mode instead of quasar-cli alone. Maybe in the future it will be possible to build multiple html pages from quasar project also. It would open so many possibilities btw…

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