V5 支持tailwindcss@3吗?,按照官网配置/把仓库的代码拉下来,运行demo都会报错 #907
Replies: 2 comments 1 reply
-
|
@Half-Sugar-Code weapp-tailwindcss@5 是支持 tailwindcss@3 和 tailwindcss@4 ,不过目前所有的模板还在 weapp-tailwindcss@4 阶段,还没有更新到 weapp-tailwindcss@5,因为还在解决一些 uni-app x 的问题 你是把官网配置哪个仓库的拉下来会报错呀,目前所有的模板,只有 https://github.com/sonofmagic/weapp-tailwindcss/tree/main/demo 里的是更新过的,其他的模板都还在 weapp-tailwindcss@4, 都还没有迁移到 weapp-tailwindcss@5 因为迁移到 weapp-tailwindcss@5 配置要进行变更一下 https://tw.icebreaker.top/docs/migrations/v5 然后 warn - The content option in your Tailwind CSS configuration is missing or empty. 你有项目,或者提供更多信息,我可以帮你看看。 |
Beta Was this translation helpful? Give feedback.
-
|
这个 warn 可以先按「Tailwind 没有读到当前这份配置」排查,不是 如果你跑的是 // tailwind.config.js
module.exports = {
content: [
"./src/**/*.{html,js,ts,jsx,tsx,vue,nvue,wxml,axml,ttml,qml,ux}",
],
darkMode: "class",
theme: {
extend: {},
},
plugins: [],
corePlugins: {
preflight: false,
},
}如果你跑的是 需要贴一下 If my answer solved your problem, please mark it as answered the question — I'm here to help, and honestly I'm also collecting Galaxy Brain badges along the way 😆 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
错误
warn - The
contentoption in your Tailwind CSS configuration is missing or empty.warn - Configure your content sources or your generated CSS will be missing styles.
warn - https://tailwindcss.com/docs/content-configuration
Beta Was this translation helpful? Give feedback.
All reactions