qingyuano

Results 14 comments of qingyuano

遇到了同样的问题,还有就是能不能提供自定义class选项 ![1631008873(1)](https://user-images.githubusercontent.com/42159029/132326051-17768748-6c4b-41df-8497-9bb0f9a8955f.jpg) style自定义属性都没有

![image](https://user-images.githubusercontent.com/42159029/132786712-94ddaf43-b8d6-4d9b-aa4b-2b501e7e5648.png) 这样分包和这样的目录结构,好像配不了。

> 你好,你能具体说一下是缺少了哪些css变量吗?rotate-45 我试了一下在我这是好的 ![image](https://user-images.githubusercontent.com/15621541/231339615-889d1ab8-95da-4eb6-bd7e-d8ff9073be19.png) 我的好像是没有生成这个东西 ![image](https://user-images.githubusercontent.com/42159029/231342477-3fb7a4e7-4872-4553-9456-fe47de52bc32.png)

> > 你好,你能具体说一下是缺少了哪些css变量吗?rotate-45 我试了一下在我这是好的 ![image](https://user-images.githubusercontent.com/15621541/231339615-889d1ab8-95da-4eb6-bd7e-d8ff9073be19.png) > > 我的好像是没有生成这个东西 ![image](https://user-images.githubusercontent.com/42159029/231342477-3fb7a4e7-4872-4553-9456-fe47de52bc32.png) 能看下你的tailwind配置吗?

> 我的配置就是默认的: > > ```js > /** @type {import('tailwindcss').Config} */ > module.exports = { > content: ["./src/**/*.{html,js,ts,jsx,tsx}"], > theme: { > extend: {}, > }, > plugins: [], > corePlugins:...

> 我大概知道原因了,你能发一下你的 tailwindcss 版本和打包出来的 dist/app.wxss 内容嘛,我怀疑是选择器没有被更新替换,可能是我 2.x.x 更改了css变量注入域的判断标准导致的。 "tailwindcss": "^3.3.1" ![image](https://user-images.githubusercontent.com/42159029/231345805-b48f67b3-9cf8-4def-81e5-47e30388abfa.png) ![image](https://user-images.githubusercontent.com/42159029/231345831-c2efa89f-ff16-43f6-8c1a-aed426e23397.png)

> 奇怪了,主css变量注入的块丢了,是不是什么插件把它干掉了,要不加群大家一起看看吧,就在置顶issue里。 https://github.com/QingYuanO/taro-simple-template 这个模板

> 调试之后找到问题了,是 @tarojs/plugin-html 导致的,注释掉这个css变量注入块的选择器就出来了,具体细节要在研究研究。 OK,感谢回复