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

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

Open
AciGo opened this issue Sep 15, 2022 · 0 comments
Open

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

AciGo opened this issue Sep 15, 2022 · 0 comments

Comments

@AciGo
Copy link

AciGo commented Sep 15, 2022

  • 我的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`;
      },
    },
  ],
})
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