Search code examples
quasar-frameworkmulti-page-application

How to use multi page mode in quasar?


Is it possible to have multi page mode in quasar? In pure VueJS it's possible by configuring this option https://cli.vuejs.org/config/#pages.

In quasar I can't figure out whether this is possible as I can't find anything on this on the web.


Solution

    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.

    Source