-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
tailwindcss v2 版本下开启 TAILWIND_MODE=watch 的环境变量会导致高版本 hbuilderx 重复差量编译 #264
Comments
嗯,好的我排查一下, |
项目: https://github.com/sonofmagic/uni-app-vue3-tailwind-hbuilder-template , 我需要更多更加详细的信息补充,以复现你这个问题 或者你可以提供可以复现的demo link |
依赖项 |
这次我用了这个模板 https://github.com/sonofmagic/uni-app-vue2-tailwind-hbuilder-template 差量编译也只出现了一次,没有复现这个问题,你可以试试用你的 hbuilderx 跑一下这个模板试试 |
win10 hbuilderx3.98 |
复现过程我找了个 windows 机器,下载了 hbuilderx3.98 复现了这个问题,排查下来和插件无关,和 process.env.TAILWIND_MODE = "watch" 这个去掉,差量编译重复的问题就好了,但是这个 这个问题只在 windows 上 hbuilderx 出现, macos hbuilderx 没有这样的问题,同时 解决方案所以解决方案为:
另外我还试了在 "uni-app": {
"scripts": {
"dev": {
"title": "开发微信小程序",
"browser": "",
"env": {
"UNI_PLATFORM": "mp-weixin",
"TAILWIND_MODE": "watch"
},
"define": {}
}
}
} 然后在 |
好的,太感谢作者了 |
描述这个Bug
今天升级了hbuilderx到3.98,结果项目一运行就一直重复编译,排查了一下午怀疑是 tailwindcss的问题。
于是我使用新建了一个uniapp项目并安装配置了tailwindcss,结果不出所料,模板中每有一条tailwindcss类名就会差量编译一次
屏幕截图(可选)


运行环境
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: