Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

不支持react-vant这个组件库,麻烦支持下!!! #96

@AciGo

Description

@AciGo
  • 我的vite版本"vite": "^3.0.7"
  • 组件库地址:https://react-vant.3lang.dev/
  • 一开始这么设置报错,路径不对(蓝色线是多于的):
createStyleImportPlugin({
  libs: [
    {
      libraryName: "react-vant",
      esModule: true,
      resolveStyle: (name) => {
        return `react-vant/es/${name}/style/index.css`;
      },
    },
  ],
})

image

  • 我按照以下配置,但是不生效:
createStyleImportPlugin({
  libs: [
    {
      libraryName: "react-vant",
      esModule: true,
      resolveStyle: (name) => {
        return `../es/${name}/style/index.css`;
      },
    },
  ],
})

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