We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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": "6.2.0"
在组件 index.less 文件中使用 @import 去引入一个css文件 如 @import '~vant/lib/button/index.css' ,则通过yarn build 命令构建出来的index.css文件中,css部分没有被编译,依旧是以 @import '~vant/lib/button/index.css' 的方式存在
chrome
The text was updated successfully, but these errors were encountered:
这个就是 Less 的默认行为,可以看下官方文档:https://lesscss.org/features/#import-atrules-feature-file-extensions
Sorry, something went wrong.
No branches or pull requests
重现链接
必现
Vant 版本
"@vant/cli": "6.2.0"
描述一下你遇到的问题。
在组件 index.less 文件中使用 @import 去引入一个css文件 如 @import '~vant/lib/button/index.css' ,则通过yarn build 命令构建出来的index.css文件中,css部分没有被编译,依旧是以 @import '~vant/lib/button/index.css' 的方式存在
重现步骤
@import '~vant/lib/button/index.css'
设备/浏览器
chrome
The text was updated successfully, but these errors were encountered: