Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tianyazjq opened this issue Aug 25, 2023 · 0 comments
Open

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

tianyazjq opened this issue Aug 25, 2023 · 0 comments

Comments

@tianyazjq
Copy link

tianyazjq commented Aug 25, 2023

我运行了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/[email protected]/build/lowcode/assets-prod.json"
  },
  "homepage": "https://unpkg.com/[email protected]/build/index.html"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant