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

antd-mobile component import invalid on damand #61

Open
zhaohongyan opened this issue Dec 20, 2021 · 0 comments
Open

antd-mobile component import invalid on damand #61

zhaohongyan opened this issue Dec 20, 2021 · 0 comments

Comments

@zhaohongyan
Copy link

import styleImport from 'vite-plugin-style-import'

styleImport({
      libs: [
        {
          libraryName: 'antd-mobile',
          resolveStyle: (name) => {
            return `antd-mobile/es/components/${name}/${name}.css`
          },
        },
      ]
    })
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant