-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
taro3.6.2 webpack5 环境下,这个插件和 terser-webpack-plugin
一起使用,会导致插件转义功能失效
#142
Comments
好的,我待会下班复现一下 |
你能把具体报错的那一块 |
额,我看这个是通病。其他类似的tailwind插件都是一样有这个问题。
|
我试了一下, .bg-sky-500_s_80 {
background-color: rgb(14 165 233 / 0.8)
} 并没有报错,你能把你报错的 |
到 |
你好啊,你用的 weapp-tailwindcss-webpack-plugin 版本是啥,似乎注册的有问题, |
|
在 |
好的大佬 |
taro-plugin-compiler-optimization
一起使用,会导致插件转义功能失效
taro-plugin-compiler-optimization
一起使用,会导致插件转义功能失效terser-webpack-plugin
一起使用,会导致插件转义功能失效
代码压缩,直接使用 taro 的压缩配置就行了, 这个 issue 当时是和外部额外安装的 terser 插件出现了问题,和 taro 内部的 terser 就能正常跑了, 而且可能在新的版本里,这个问题已经被修复了。 |
你有什么想问的可以写在这
比如 使用 bg-sky-500/100
报错:
The text was updated successfully, but these errors were encountered: