https://github.com/lkiarest/vue-remote-loader
简单的远程应用加载方案
https://github.com/lkiarest/vue-remote-loader
Last synced: about 1 year ago
JSON representation
简单的远程应用加载方案
- Host: GitHub
- URL: https://github.com/lkiarest/vue-remote-loader
- Owner: lkiarest
- Created: 2020-11-26T03:23:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-26T07:16:48.000Z (over 5 years ago)
- Last Synced: 2025-01-21T08:45:09.118Z (over 1 year ago)
- Language: JavaScript
- Size: 136 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vue-remote-loader
远程加载 vue 应用的简单方案,类似微前端,适合加载大量轻量的远程 vue 应用到一个页面上。
基本实现是给远程应用增加一个 bootstrap 的外部方法,并打包为 umd 格式。外壳应用远程获取打包的 js 文件并执行 bootstrap 入口函数。
css 隔离通过 vue scope 方式解决。
> __master__ 为主应用(外壳)
> __app1__、__app2__ 为子应用
TODO: 增加 js 隔离方案