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

如何在快应用使用less #6

Open
BoatGina opened this issue Mar 10, 2019 · 3 comments
Open

如何在快应用使用less #6

BoatGina opened this issue Mar 10, 2019 · 3 comments

Comments

@BoatGina
Copy link

我看源码处理vue文件的时候,在处理style那一块没有考虑到css预编译情况,但原生的快应用可以使用css预编译比如less,这样的话,使用这个框架写样式就回归到原生状态了。。。。

@Youjingyu
Copy link
Owner

Youjingyu commented Mar 10, 2019

@BoatGina 确实没有考虑到。已加入 todo list。
一种取巧的方式是,通过 @import 引入 less 文件。
另外针对 css 的处理更多的是一种补救措施,比如友好的提示、选择器转换,快应用对 css 支持不太好,更多的是需要开发者自己避开这些坑。

@BoatGina
Copy link
Author

@Youjingyu 通过 @import 引入 less 文件这种方式其实也不通,因为你代码里已经写死<style></style>标签了,但是如果@import less文件的话,应该是<style lang="less"></style>的形式。

@Youjingyu
Copy link
Owner

@BoatGina 对,这里处理是有问题

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