• Stars
    star
    121
  • Rank 293,924 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 5 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🎳Nuxt module for micro-frontend solution

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!

More Repositories

1

el-data-table

🥘Base on element-ui, makes crud easily
Vue
486
star
2

el-form-renderer

🎩A data-driven dynamic and complex form solution
JavaScript
231
star
3

log-viewer

💻View terminal logs in browser
JavaScript
110
star
4

v-gantt

📊Gantt chart
Vue
101
star
5

dique

🐦移动端语雀,你的掌上知识库
Dart
70
star
6

v-img

📸Use webp and lazyload images
JavaScript
48
star
7

hire

🤝 Join us
JavaScript
47
star
8

create-nuxt-app

⚡️Create deepexi style nuxt app in seconds
JavaScript
44
star
9

el-data-tree

🌴Base on element-ui, makes tree component crud easily
Vue
29
star
10

update-popup

💬Display an update message at right bottom
JavaScript
24
star
11

upload-to-ali

☁️Upload to ali-oss easily
Vue
21
star
12

v-editor

📝Write md or rich text easily
JavaScript
21
star
13

data-list

📜Load more list items easily
Vue
16
star
14

el-select-area

🇨🇳Chinese area select component(including Taiwan、Hongkong、Macao)
JavaScript
15
star
15

blog

📖团队博客
JavaScript
13
star
16

app-download

build your app's download page easily
JavaScript
9
star
17

excel-it

⬇️import/export excel easily
JavaScript
9
star
18

el-semver-input

🖊Semantic version input component
Vue
8
star
19

img-preview

🖼Preview your img  easily
JavaScript
7
star
20

dockerize-cli

🐳 Dockerize your web project in one minute
JavaScript
4
star
21

direct-mail

📧Send DirectMail with Node.js
JavaScript
4
star
22

serverless-nestjs-starter

🚀 serverless + nestjs + postgres
TypeScript
1
star
23

nuxt-jest-puppeteer

JavaScript
1
star
24

release-script

🖨Process FEMessage's release stuff
Shell
1
star
25

el-number-range

🔢Number range input component
JavaScript
1
star