ice breaker

Results 119 comments of ice breaker

新的版本已经更改为 import 异步导入,此问题 close

我记得之前tailwindcss@3的时候也出现过 当时好像是这样解决的 https://tw.icebreaker.top/docs/issues#taro-webpack5-%E7%8E%AF%E5%A2%83%E4%B8%8B%E8%BF%99%E4%B8%AA%E6%8F%92%E4%BB%B6%E5%92%8C%E5%A4%96%E7%BD%AE%E9%A2%9D%E5%A4%96%E5%AE%89%E8%A3%85%E7%9A%84-terser-webpack-plugin-%E4%B8%80%E8%B5%B7%E4%BD%BF%E7%94%A8%E4%BC%9A%E5%AF%BC%E8%87%B4%E6%8F%92%E4%BB%B6%E8%BD%AC%E4%B9%89%E5%8A%9F%E8%83%BD%E5%A4%B1%E6%95%88

试试 https://tw.icebreaker.top/docs/issues/taro-terser @yoke0104x 直接使用 https://docs.taro.zone/docs/config-detail#terser 配置呢?

@yoke0104x 那你提供一个复现案例给我看看吧,我怀疑是编译配置的问题 你可以创建一个私有仓库,然后邀请我进去排查一下。

好的,收到你的 https://github.com/yoke0104x/taro-tailwindcss-bug-demo 仓库,我排查一下

@yoke0104x 我试了一下,按照我那样配置是可以的呢,所以我改了代码之后,给你提了一个 pr 你可以参照我的代码试试,这样开发时候就能够压缩代码了 https://github.com/yoke0104x/taro-tailwindcss-bug-demo/pull/1 实际上就是按照我文档 https://tw.icebreaker.top/docs/issues/taro-terser 上写的去操作的

Fixed in 4.1.5 https://github.com/sonofmagic/weapp-tailwindcss/pull/629

@chioio 但是这种行为会导致使用透明度 + css 变量的时候,被回滚到固定的颜色值,因为微信小程序不支持 color-mix,同时 tailwindcss 依赖 color-mix + css var 来进行颜色变量的计算。 这也算是小程序上不得已做出的牺牲吧,希望以后小程序能够支持更多的 CSS 特性

I am also looking for a similar solution at the moment, and I will continue to follow this closely.