sonofmagic / weapp-tailwindcss

bring tailwindcss to weapp ! 把 `tailwindcss` 原子化**带入小程序开发吧 ! 原 `weapp-tailwindcss-webpack-plugin`

Home Page:https://weapp-tw.icebreaker.top

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

使用大括号、除号时小程序打包错误

814351846 opened this issue · comments

描述这个Bug
taro-react里使用bg-[#123456],w-1/2, w-[20rpx]报错

报错:
[ WXSS 文件编译错误]
ERR: wxss GetCompiledResult: ./app-origin.wxss(427:6): unexpected \ at pos 13681
(env: Windows,mp,1.06.2401020; lib: 3.3.4)

代码url
1

如何重现
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

运行环境

  • OS: weapp
  • Nodejs: 18x
  • Framework: taro-react

这种情况是你没有顺利的注册好这个插件导致的

你可以参考 https://github.com/sonofmagic/taro-react-tailwind-vscode-template 这个模板项目进行一个配置

或者你也可以提供一个,可复现这个bug的一个用例

感谢,是我配置了这个导致的
1