1.1.7 • Published 3 years ago

startup-micro v1.1.7

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

启动多个微前端的项目

  • 自己项目使用,用来启动多个微前端

需要配置 startup.config.js

const path = require("path");

export default {
  host: "http://localhost:3000",
  filePath: {
    // 主框架
    main: {
      path: path.join(__dirname, "../../aaa"),
      command: "npm start",
    },
    // 其他子框架
    react1: {
      path: path.join(__dirname, "../../bbb"),
      command: "npm start",
    },
    react2: {
      path: path.join(__dirname, "../../ccc"),
      command: "npm start",
    },
    vue3: {
      path: path.join(__dirname, "../../ddd"),
      command: "npm start",
    },
  },
};

用法

package.json

{
  "scripts": {
    "startAll": "startup",
  },
}

切换源

npm config set registry=http://registry.npm.taobao.org/ npm config set registry=https://registry.npmjs.org

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago