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

如何禁止删除标签 #106

Open
baranwang opened this issue Aug 27, 2019 · 2 comments
Open

如何禁止删除标签 #106

baranwang opened this issue Aug 27, 2019 · 2 comments

Comments

@baranwang
Copy link

baranwang commented Aug 27, 2019

production 下,标签内值为空格会被移除,如:

<van-cell-group title=" ">
</van-cell-group>

会编译为

<van-cell-group></van-cell-group>

请问该如何禁止这一功能?

@imyelo
Copy link
Member

imyelo commented Aug 28, 2019

似乎是受 html-minifier 的这项配置影响 https://github.com/tinajs/wxml-loader/blob/tinajs/src/index.js#L46

@baranwang
Copy link
Author

可否增加在 webpack 中的配置选项?目前临时使用

<van-cell-group title="{{ ' ' }}">
</van-cell-group>

但是感觉不是很友好

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