@femessage/nuxt-micro-frontend

Using front-end microservices with Nuxt
6,328 127
Install
npm install @femessage/nuxt-micro-frontend
Latest Version:1.7.0
License:MIT
Last Updated:Oct 26, 2021
Links: GitHub  ·  npm
Maintainer: levy9527

Nuxt-Micro-Frontend

All Contributors

Build Status NPM Download NPM Version NPM License PRs Welcome Automated Release Notes by gren

Using frontend microservices with Nuxt, support qiankun now

中文

Setup

  1. Add @femessage/nuxt-micro-frontend dependency to your project
yarn add @femessage/nuxt-micro-frontend -D 

# or npm install @femessage/nuxt-micro-frontend
  1. Add @femessage/nuxt-micro-frontend to the modules section of nuxt.config.js
{
  modules: [
    // Simple usage
    '@femessage/nuxt-micro-frontend',

    // With options
    ['@femessage/nuxt-micro-frontend', { /* module options */ }]
  ]
}

Module Options

Documents

If want to set headers recommend to set build.devMiddleware.headers, see Nuxt API: The build Property > devMiddleware

path: the MFE lifecycle hook file path relative to rootDir

force: skip version check and force to use this module

unique: If use qiankun, sub application's package name should unique. Set unique to true can create a unique umd target.

output: If use the other micro library, probably need to config the webpack output libraryTarget.

Support Micro Front-End Framework

LifeCycle hooks file example

Qiankun

  • add mounted and beforeUnmount hook to get vue instance

Development

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development server using cd examples/normal && npm run dev

License

MIT License

Copyright (c) FEMessage

Contributors ✨

Thanks goes to these wonderful people (emoji key):


cjf

💻 📖 📝 💡

Han

💻 🖋 🚇

Munawar Bijani

🐛

This project follows the all-contributors specification. Contributions of any kind welcome!

Related Packages

@femessage/element-ui

A Component Library for Vue.js.

10,447 62
@femessage/vant

Mobile UI Components built on Vue

1,344 24,404
@femessage/el-form-renderer

render form-item easily

36,677 233
@femessage/log-viewer

💻 View terminal logs in browser

11,528 119
@femessage/el-data-table

base on element-ui, makes crud easily

2,768 480

Version History

Version Released License
1.7.0 MIT
1.6.0 MIT
1.5.0 MIT
1.4.1 MIT
1.4.0 MIT