ice-lab / build-scripts

:octopus: 基于 Webpack 的插件化工程构建工具,支持快速建设一套开箱即用的工程方案。
MIT License
396 stars 75 forks source link

我想配置多页面入口,可是报这个entry不支持 #132

Open tianyazjq opened 1 year ago

tianyazjq commented 1 year ago

我运行了npm run start2

image

{
  "entry": {
    "login/login": "./src/login.ts"
  },
  "vendor": false,
  "devServer": {
    "hot": false
  },
  "publicPath": "/",
  "externals": {
    "react": "var window.React",
    "react-dom": "var window.ReactDOM",
    "prop-types": "var window.PropTypes",
    "@alifd/next": "var window.Next",
    "@alilc/lowcode-engine": "var window.AliLowCodeEngine",
    "@alilc/lowcode-engine-ext": "var window.AliLowCodeEngineExt",
    "moment": "var window.moment",
    "lodash": "var window._"
  },
  "plugins": [
    [
      "build-plugin-component",
      {
        "themePackage": "@alifd/theme-2"
      }
    ],
    "./build.plugin.multi.js"
  ]
}

package.json文件如下

{
  "name": "lowcode-comps",
  "version": "0.1.1",
  "description": "lowcode-comps",
  "main": "lib/index.js",
  "module": "es/index.js",
  "typings": "types/index.d.ts",
  "files": [
    "build",
    "dist",
    "lib",
    "es",
    "types"
  ],
  "scripts": {
    "start": "npm run dumi",
    "start2": "build-scripts start --disable-reload --port 6666",
    "build": "build-scripts build",
    "lc:dev": "build-scripts start --config ./build.lowcode.js",
    "lowcode:build": "build-scripts build --config ./build.lowcode.js",
    "f2elint-scan": "f2elint scan",
    "f2elint-fix": "f2elint fix",
    "dumi": "cross-env APP_ROOT=docs dumi dev",
    "dumi:build": "cross-env APP_ROOT=docs dumi build",
    "prepublishOnly": "npm run build && npm run lowcode:build && npm run dumi:build"
  },
  "directories": {
    "test": "test"
  },
  "keywords": [
    "lowcode",
    "comps"
  ],
  "author": "yjf",
  "license": "MIT",
  "peerDependencies": {
    "moment": "latest",
    "react": "^16.x",
    "react-dom": "^16.x"
  },
  "devDependencies": {
    "@alib/build-scripts": "^0.1.3",
    "@alifd/build-plugin-lowcode": "^0.3.0",
    "@alifd/theme-2": "^0.4.0",
    "@types/react": "^16.14.24",
    "@types/react-dom": "^16.9.4",
    "@umijs/plugin-sass": "^1.1.1",
    "build-plugin-component": "^1.12.1",
    "build-plugin-fusion": "^0.1.0",
    "cross-env": "^7.0.3",
    "dumi": "^1.1.49",
    "dumi-theme-default": "^1.1.24",
    "f2elint": "^1.2.0"
  },
  "dependencies": {
    "@alifd/next": "^1.25.27",
    "@alilc/antd-lowcode-materials": "^1.2.2",
    "@alilc/build-plugin-alt": "^1.3.3",
    "antd": "4.17.3",
    "bizcharts": "^4.1.22",
    "echarts": "^5.4.2",
    "echarts-for-react": "^3.0.2",
    "lodash": "^4.17.21",
    "moment": "latest",
    "prop-types": "^15.5.8",
    "react": "^16.x",
    "react-dom": "^16.x"
  },
  "acceptDependencies": {
    "webpack": "^4.46.x"
  },
  "resolutions": {
    "webpack": "^4.46.x"
  },
  "componentConfig": {
    "isComponentLibrary": true,
    "materialSchema": "https://unpkg.com/lowcode-comps@0.1.1/build/lowcode/assets-prod.json"
  },
  "homepage": "https://unpkg.com/lowcode-comps@0.1.1/build/index.html"
}