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

[Bug]: Use tailwindcssPlugin does not work #5640

Open
h7ml opened this issue Apr 13, 2024 · 1 comment
Open

[Bug]: Use tailwindcssPlugin does not work #5640

h7ml opened this issue Apr 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@h7ml
Copy link

h7ml commented Apr 13, 2024

版本信息

System:
    OS: Windows 11 10.0.22000
    CPU: (16) x64 12th Gen Intel(R) Core(TM) i5-1240P
    Memory: 1.71 GB / 15.73 GB
  Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (123.0.2420.97)
    Internet Explorer: 11.0.22000.120

问题详情

根据文档 正确的安装@modern-js/plugin-tailwindcssmodern.config.ts添加了tailwindcssPlugin

由于是构建组件库 无法直接在src/index.jsx引入。

我是这样使用的

https://github.com/h7ml/shark/blob/e1f31eec906be992d8ac9095b31806ef50dc8a17/packages/ui/src/VideoPlayer/styles/index.less#L1-L3

https://github.com/h7ml/shark/blob/e1f31eec906be992d8ac9095b31806ef50dc8a17/packages/ui/src/VideoPlayer/VideoPlayer.tsx#L2

image

复现链接

https://github.com/h7ml/shark/tree/master/packages/ui

复现步骤

codesandbox

pnpm dev:docs

VideoPlayer

@h7ml h7ml added the bug Something isn't working label Apr 13, 2024
@zobkazi
Copy link

zobkazi commented May 16, 2024

is not working now??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants