vite-plugin-theme
vite-plugin-theme copied to clipboard
生产环境和开发环境的样式表现不一致
Menu 组件
在鼠标悬浮之后border-bottom 会被放出来
.ant-menu 的 [data-theme="dark"] .ant-menu-horizontal 里的border-bottom 会被覆盖
但是生产环境的表现刚好相反
这个可能跟按需引入有关,可以给一个复现?
@donley828 看一下是不是和这个 issues 同一个原因导致的 https://github.com/anncwb/vite-plugin-theme/issues/7
因为暗黑模式的 css 文件默认插入到了 html 的 <!DOCTYPE html>
之前,导致生产态下忽略了这个 DOCTYPE , 导致的样式不一致问题