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] 开启tailwindcss配置之后,无法在less文件中使用theme方法 #11401

Closed
vkboo opened this issue Jul 11, 2023 · 2 comments
Closed

Comments

@vkboo
Copy link
Contributor

vkboo commented Jul 11, 2023

What happens?

开启tailwindcss配置之后,无法在less文件中使用theme方法

Mini Showcase Repository(REQUIRED)

https://github.com/vkboo/demos-umi4-issue-tailwindcss

  • Umi Version: @umijs/max: "4.0.69"
  • Node Version: v16.20.0
  • Platform: M2 macOS Version 13.4.1
@fz6m
Copy link
Contributor

fz6m commented Jul 11, 2023

目前内置 tailwind 和 unocss 功能都是比较老的时期做的,经过时间太久了,用的人也很少,现在都处于不可用状态。

如需使用,请参照 tailwind 官方文档改用 postcss 插件或者 webpack 插件等形式使用,如果后续 umi 有计划了再完善内置的。

@fz6m
Copy link
Contributor

fz6m commented Mar 29, 2024

目前 umi 的 tailwindcss / unocss 插件是侧载方式实现的,所以有一些功能缺失,如需完整的功能,可以不使用 umi 的插件,自己根据官网的文档配置 postcss 或 webpack 插件即可。

Refer:#11403 (comment)

@fz6m fz6m closed this as completed Mar 29, 2024
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

2 participants