@hanxx/micro-nuxt
v2.11.0
Published
Using front-end microservices with Nuxt
Downloads
1
Readme
Micro-Nuxt
Using front-end microservices with Nuxt, support qiankun now
Setup
- Add
@hanxx/micro-nuxt
dependency to your project
yarn add @hanxx/micro-nuxt -D # or npm install micro-front-end
- Add
@hanxx/micro-nuxt
to themodules
section ofnuxt.config.js
{
modules: [
// Simple usage
'@hanxx/micro-nuxt',
// With options
['@hanxx/micro-nuxt', { /* module options */ }]
]
}
Module Options
path: the MFE lifecycle hook file path
force: skip version check and force to use this module
Support Micro Front-End Framework
- [x] qiankun
- [ ] single-SPA waiting for test and verify
LifeCycle hooks file example
Development
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
npm run dev
License
Copyright (c) Han [email protected]