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

多页项目dev正常,build后自定义样式优先级低于框架样式 #7168

Closed
7 tasks done
YangJianFei opened this issue Mar 4, 2022 · 6 comments
Closed
7 tasks done
Labels
duplicate This issue or pull request already exists

Comments

@YangJianFei
Copy link

YangJianFei commented Mar 4, 2022

Describe the bug

build: {
rollupOptions: {
input: {
alarm: path.resolve(__dirname, 'alarm.html'),
pass: path.resolve(__dirname, 'pass.html'),
facility: path.resolve(__dirname, 'facility-service-system.html')
}
}
},

开发模式正常,build后:

<link rel="modulepreload" href="./assets/common.edbf0978.js">
  <link rel="modulepreload" href="./assets/vendor.500d549a.js">
  <link rel="modulepreload" href="./assets/dictionary.1a017a0b.js">
  <link rel="modulepreload" href="./assets/utils.1eb921be.js">
  <link rel="stylesheet" href="./assets/common.9d3a84ec.css"> //这个自定义样式优先级降低了
  <link rel="stylesheet" href="./assets/vendor.580fc93b.css">  //框架样式优先级提高了
  <link rel="stylesheet" href="./assets/alarm.0dd66d57.css">

Reproduction

https://codesandbox.io/s/distracted-bhabha-wckp4t

System Info

System:
    OS: Windows 10 10.0.19044
    CPU: (6) x64 Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
    Memory: 3.04 GB / 15.89 GB
  Binaries:
    Node: 16.13.1 - D:\nodejs16.13.1\node.EXE
    npm: 8.1.2 - D:\nodejs16.13.1\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (98.0.1108.62)
    Internet Explorer: 11.0.19041.1202

Used Package Manager

npm

Logs

No response

Validations

@ydcjeff
Copy link
Contributor

ydcjeff commented Mar 4, 2022

Please provide a minimal reproduction to reproduce the issue.

@github-actions
Copy link

github-actions bot commented Mar 4, 2022

Hello @YangJianFei. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction will be closed if they have no activity within 3 days.

@YangJianFei
Copy link
Author

@ydcjeff 更新了

@zsj1029
Copy link

zsj1029 commented Mar 4, 2022

同样遇到类似情况,dev模式正常
prod打包后异常
ant 的 select group组件,打包后下拉option被遮挡,手动提升z-index才解决

@emosheeep
Copy link
Contributor

这么说来我也遇到过,还以为是自己哪里写错了害

@sapphi-red
Copy link
Member

Duplicate of #6375

@sapphi-red sapphi-red marked this as a duplicate of #6375 Aug 20, 2023
@sapphi-red sapphi-red closed this as not planned Won't fix, can't repro, duplicate, stale Aug 20, 2023
@sapphi-red sapphi-red added duplicate This issue or pull request already exists and removed pending triage feat: css labels Aug 20, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Sep 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

7 participants