Skip to content

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

Description

@YOOYY

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的

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions