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

动态加载产物命名全是 index1 index2 index3 #4970

Closed
guoyunhe opened this issue Nov 25, 2021 · 1 comment
Closed

动态加载产物命名全是 index1 index2 index3 #4970

guoyunhe opened this issue Nov 25, 2021 · 1 comment

Comments

@guoyunhe
Copy link
Contributor

What is the current behavior? 发生了什么?

页面组件定义如下,文件名都是 index.tsx

image

在使用动态加载之后,构建产物是

image

What is the expected behavior? 期望的结果是什么?

希望在文件名是 index.tsx 的时候,能够按照文件夹的名字来命名产物,生成 dashboard.js, settings.js 等,比较容易在第三方应用中动态加载

Any additional comments? 相关环境信息?

  • ice.js Version:2.2.2
  • build.json Configuration
{
  "alias": {
    "@": "./src/"
  },
  "browserslist": {
    "chrome": "49",
    "ie": "11"
  },
  "eslint": false,
  "devPublicPath": "/customs/",
  "plugins": [
    [
      "build-plugin-fusion",
      {
        "themePackage": "@alife/theme-blue"
      }
    ],
    [
      "build-plugin-moment-locales",
      {
        "locales": ["zh-cn"]
      }
    ]
  ],
  "publicPath": "/customs/",
  "tsChecker": true,
  "vite": true
}
  • Node Version: 16
  • Platform: macOS
@imsobear
Copy link
Collaborator

#4818 相同的问题,这个先关掉了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants