To develop SSR, we first need to inform Quasar that we want to add a new mode of development. Open Terminal (macOS or Linux) or the Command Prompt/PowerShell (Windows) and execute the following command:
> quasar mode add cordova
Now the Quasar-CLI will ask you some configuration questions:
-
What is the Cordova app ID? (org.cordova.quasar.app)
-
May Cordova anonymously report usage statistics to improve the tool over time? (Y/N) N
Quasar-CLI will create a folder called src-cordova, which will have a Cordova project inside.
The folder structure of a Cordova project looks like this:
src-cordova/
├── config.xml
├── packages.json
├── cordova-flag.d.ts
├── hooks/
├── www/
├── platforms/
├── plugins/
As a separate project inside Quasar, to add Cordova plugins, you need to call plugman or cordova plugin add...