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

element-ui 按需导入 样式文件丢失 #65

Open
YOOYY opened this issue Jun 9, 2022 · 0 comments
Open

element-ui 按需导入 样式文件丢失 #65

YOOYY opened this issue Jun 9, 2022 · 0 comments

Comments

@YOOYY
Copy link

YOOYY commented Jun 9, 2022

vue 版本 2.6
element 版本 2.15
vue-cli 版本 4.5.17
babel.config.js 配置文件

{
  "presets": [
    "@vue/cli-plugin-babel/preset"
   ],
  "plugins": [
    [
      "component",
      {
        "libraryName": "element-ui",
        "styleLibraryName": "theme-chalk"
      }
    ]
  ]
}

组件正常按需加载,但是样式缺失,如果加载全局css文件样式正常,但是理论上来讲应该会自动按需加载css的

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