Quasar Framework: Vite Module Federation

Create two projects called remote-app and host-app:

Shell

Install the plugin in remote-app and host-app:

Shell

Create a component in remote-app called HelloWorld.vue:

Vue.js Component

Inside remote-app open quasar.config.js:

JavaScript

Inside host-app quasar.config.js:

JavaScript

Inside host-app App.vue:

Vue.js Component

Start the remote-app. This will assign port 9000 to remote-app.

Start the host-app. This will assign port 9001 to host-app.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *