Giter VIP home page Giter VIP logo

qiankun-vue's Introduction

简介

分享此demo仅便于学习和解决项目开发上的问题,demo只使用了VUE框架。项目统一使用最外层pagekage.json安装插件来实现项目一致性,遇到特定第三方插件单独在项目pagekage.json配置。项目主要采用history + [hash || history],子项目有使用cdn加速的案例。

如下解决一些问题:

  • 多应用间公用组件开发
  • 相同VUE配置环境开发环境
  • 切换应用后不需要重新加载应用

安装

$ npm install
$ npm run projects:install
$ npm run projects:start

主应用地址

http://localhost:8090

打包

$ npm run projects:build

目录说明

root/
  common/
    components/        公用组件
    layouts/
  dist/                打包后的目录
    vue-custom-router/
    vue-hash/
    vue-history-cdn/
    vue-main/
  projects/
    vue-custom-router/ 子应用 -- router模式可由主应用配置
    vue-hash/          子应用 -- hash模式
    vue-history-cdn/   子应用 -- history模式 + cdn加速
    vue-main/          主应用 -- qiankun
  package.json

其他

欢迎到钉钉群参与讨论 alt 钉钉二群

qiankun-vue's People

Contributors

wwhyes avatar

Stargazers

 avatar  avatar Hulei avatar  avatar  avatar makeng avatar seven avatar  avatar Damon avatar

Watchers

James Cloos avatar  avatar

Forkers

zphtown enond

qiankun-vue's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.