https://github.com/minsion/micro-app
A simple, efficient and powerful micro front-end framework. 一款简约、高效、功能强大的微前端框架
https://github.com/minsion/micro-app
Last synced: 3 months ago
JSON representation
A simple, efficient and powerful micro front-end framework. 一款简约、高效、功能强大的微前端框架
- Host: GitHub
- URL: https://github.com/minsion/micro-app
- Owner: minsion
- License: mit
- Created: 2024-05-20T08:45:38.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-21T13:38:15.000Z (about 2 years ago)
- Last Synced: 2025-10-20T04:49:21.803Z (9 months ago)
- Language: CSS
- Homepage:
- Size: 2.77 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# How to use
## Base application
**1、Install**
```bash
yarn add @micro-zoe/micro-app
```
**2、import at the entrance**
```js
// main.js
import microApp from '@micro-zoe/micro-app'
microApp.start()
```
**3、Use components in page**
```html
```
## Sub application
**Set cross-domain support in the headers of webpack-dev-server**
```js
devServer: {
headers: {
'Access-Control-Allow-Origin': '*',
},
},
```
### development
1、Clone
```
git clone https://github.com/minsion/micro-app.git
```
2、Install dependencies
```
yarn bootstrap
```
3、Run project
```
yarn start
```