Coder Social home page Coder Social logo

liugangtaotie / qiankun-mobile-code Goto Github PK

View Code? Open in Web Editor NEW
18.0 2.0 5.0 12.35 MB

基于乾坤的微前端(移动端)实践

Makefile 0.19% JavaScript 19.59% Shell 0.37% HTML 3.91% Vue 17.49% CSS 13.05% Less 36.07% TypeScript 9.32%
vue vite2 qiankun vue2 miniapp vite micro-frontends framework

qiankun-mobile-code's Introduction

qiankun-example

qiankun 实战 demo,父应用 vue(vite),子应用用 react(webpack) 和 vue(webpack)

一、项目特色

1. 开发环境,秒级更新,vite2成功构建vue2;

2. 使用postcss-px-to-viewport 插件,实现响应式布局(任意屏幕适配);

3. 根据vant2 自定义主题颜色;

4. 加入eslint、stylelint、prettier等插件,制定代码统一规范。

微前端qiankun从搭建到部署的实践

二、开始

一键安装所有主子应用的依赖

npm i

一键启动所有所有应用

npm start

通过 http://localhost:8080/ 访问主应用。

三、目前的开发任务

  1. 主系统篇
  • [-] 整体架构
  • [✔] 主页面整体交互
  • [✔] 全局数据流共享

qiankun-mobile-code's People

Contributors

liugangtaotie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

qiankun-mobile-code's Issues

Sub app react not working

I see you comment code sub app react

const microApps = [
  {
    name: "sub-home",
    entry:
      import.meta.env.MODE === "development" ? devEntry.home : proEntry.home,
    activeRule: "/sub-home",
  },
  {
    name: "sub-first",
    entry:
      import.meta.env.MODE === "development"
        ? devEntry.online_consult
        : proEntry.online_consult,
    activeRule: "/sub-first",
  },
  // {
  //   name: "sub-react",
  //   entry: "//localhost:7788/subapp/sub-react/",
  //   activeRule: "/sub-react",
  // },
];

But I uncommnet and open route subapp/react not working

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.