• Stars
    star
    169
  • Rank 224,453 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 5 years ago
  • Updated over 4 years ago

Reviews

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

Repository Details

🚀 qiankun plugin for vue-cli

vue-cli-plugin-qiankun

qiankun plugin for vue-cli

npm version npm downloads

使用步骤 (Use setup)

  1. 创建主应用 (Create master project)
$ vue create master
$ cd master
$ vue add vue-cli-plugin-qiankun --type master
  1. 创建子应用 (Create slave project)
$ vue create foo-app
$ cd foo-app
$ vue add vue-cli-plugin-qiankun --type slave --port 8081
  1. 配置主应用 (Config master project)

master/src/App.vue

<script>
export default {
  name: 'master',
  data () {
    return {
      // ...
      apps: [
        { name: 'foo-app', entry: '//localhost:8081', container: '#appContainer', activeRule: '/foo-app' }
      ]
    }
  },
  // ...
  methods: {
    // ...
    initQiankun () {
      // ...
      setDefaultMountApp('/foo-app')
      // ...
    }
  }
}
</script>
  1. 运行各项目 (Run each project)
$ cd master
$ yarn serve
$ cd foo-app
$ yarn serve

示例 (Examples)

DEMO

$ cd examples
$ yarn
$ yarn install:all
$ yarn serve:all

功能 (Features)

  • 修改项目文件引入 qiankun 框架

  • 注入 qiankun 框架要求的构建配置

  • 自动配置 publicPath 处理资源路径

致谢 (Acknowledgements)

  • vue-cli Standard Tooling for Vue.js Development.

  • qiankun Blazing fast, simple and completed solution for micro frontends.

  • single-spa What an awesome meta-framework for micro-frontends!

More Repositories

1

vue-simplemde

📝 Vue SimpleMDE - use simplemde with vue.js
Vue
768
star
2

ithome-lite

🥛 IT之家第三方小程序版客户端(使用 mpvue 开发,兼容 web)
Vue
528
star
3

mpvue-entry

⛓️ 集中式页面配置,统一构建入口,支持新增页面热更新
JavaScript
353
star
4

mpvue-router-patch

🛴在 mpvue 中使用 vue-router 兼容的路由写法
JavaScript
300
star
5

caption2text

📥 PWA 版字幕转换为文本工具,支持 ass 及 srt 格式,可批量导出为 word 及 text 文件
Vue
186
star
6

ChineseBQB-client

🤣 开源表情包小程序
Less
90
star
7

html-i18n-cli

HTML 国际化/翻译 工具
JavaScript
32
star
8

offscreen-canvas-demo

JavaScript
19
star
9

mpvue-packager

🛠 集成构建工具,双端支持
JavaScript
15
star
10

xiaoplayer

xiaomusic 小程序客户端,开源小程序音乐播放器,使用小爱音箱播放本地/NAS音乐
TypeScript
13
star
11

mpvue-config-loader

🏷 单文件页面配置,支持全局组件引用
JavaScript
11
star
12

ncform-maker

🔀 ncform-maker, a very nice visualization way to make ncform schema
JavaScript
7
star
13

unique

🕯 An online shopping platform based on Express & Vue2.
JavaScript
7
star
14

anonchat

👥 基于 web socket 的匿名匹配聊天
Vue
6
star
15

vscode-plugin-ncform-schema

😘 ncform schema editor plugin for vscode
Vue
6
star
16

taobao-edu-spider

🕷淘宝教育视频爬虫,基于Nightmare
JavaScript
5
star
17

vscode-plugin-html-i18n

TypeScript
5
star
18

vue-superagent

⚡A small wrapper for integrating superagent to Vuejs
JavaScript
5
star
19

vod-server

🕯 vod server side
JavaScript
4
star
20

axios-apicloud-adapter

📱 axios 的 apicloud 适配器,以便于在 app 中使用原生网络请求库,避免跨域问题
JavaScript
4
star
21

jsonl-converter

One-Click JSON Lines Converter
TypeScript
3
star
22

cards-ahoy

Cards Ahoy! 小账本,提供实时卡牌价格查询、卡牌盈亏统计及卡组配置分享等功能
TypeScript
2
star
23

vscode-extension-mammoth

Word preview and export extension for vscode.
TypeScript
2
star
24

vod-client

🕯 vod client side
Vue
2
star
25

puppet-spider

🕷 赶集网 Puppeteer 命令行爬虫工具
JavaScript
2
star
26

CasualPlay

✨Some of my small projects
JavaScript
1
star
27

simple-form-binder

JavaScript
1
star
28

university-rankings

油猴脚本,划词查询大学排名
JavaScript
1
star
29

ncform-theme-iview

ncform theme widgets -> iview
Vue
1
star