1.1.7 • Published 1 year ago

startup-micro v1.1.7

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year 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

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago