Skip to content
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

css类有三元运算符时,wxml 代码压缩错误 #5

Open
eyasliu opened this issue Oct 23, 2016 · 2 comments
Open

css类有三元运算符时,wxml 代码压缩错误 #5

eyasliu opened this issue Oct 23, 2016 · 2 comments

Comments

@eyasliu
Copy link

eyasliu commented Oct 23, 2016

如果我的wxml的类有三元运算符,启用了minify会错误,如

<view class="{{item.active ? 'active' : ''}}">test</view>

压缩后变成了

<view class="{{item">test</view>
@liangxingchen
Copy link

已经修复,请更新 labrador-cli 到0.5.9

@eyasliu
Copy link
Author

eyasliu commented Oct 23, 2016

压缩时完全忽略了css关系选择器,是小程序的真实环境会不支持吗
比如像这样的

.thumb image{}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants