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

vant/cli css 打包bug Selector "[data-v-5c89f644]" can't have a suffix #12844

Closed
LomyCool opened this issue Apr 29, 2024 · 0 comments · Fixed by #12860
Closed

vant/cli css 打包bug Selector "[data-v-5c89f644]" can't have a suffix #12844

LomyCool opened this issue Apr 29, 2024 · 0 comments · Fixed by #12860

Comments

@LomyCool
Copy link

重现链接

https://codesandbox.io/p/devbox/github/LomyCool/test-css-bind?file=%2Fsrc%2Fcomp-two%2Fcomp2.vue

Vant 版本

@vant/cli : 7.0.2

描述一下你遇到的问题。

@vant/cli 7.0.1版本是正常的

  • 有注释不会报错,但生成的css文件是空的
图片
  • 没有注释会会报错
图片

重现步骤

1.给关键代码如下,进行打包

<style lang="scss" scoped> // 有注释打包不会报错,但没生成css文件 .describe-item { &-text { word-break: keep-all; } } </style>

设备/浏览器

No response

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

Successfully merging a pull request may close this issue.

1 participant