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

关于sass的一些问题。 #31

Closed
palmerye opened this issue May 13, 2016 · 2 comments
Closed

关于sass的一些问题。 #31

palmerye opened this issue May 13, 2016 · 2 comments

Comments

@palmerye
Copy link

Vue组件里用sass写样式,外联sass样式在webpack.config里配置loader没问题的。

但在内联写sass就不行,需要在其他地方有什么配置么?

<style lang="sass">..</style>

问题:编译报错,内联无法渲染样式,

@palmerye
Copy link
Author

ERROR in .//css-loader!.//vue-loader/lib/style-rewriter.js!.//sass-loader?indentedSyntax!.//vue-loader/lib/selector.js?type=style&index=0!./src/views/home.vue
Module build failed:

^
Invalid CSS after ".container {": expected "}", was "{"
in /Users/yangmingming/LiaoXinWang/LiaoXinWang-WeChat/src/views/home.vue (line 3, column 13)
@ .//vue-style-loader!.//css-loader!.//vue-loader/lib/style-rewriter.js!.//sass-loader?indentedSyntax!./~/vue-loader/lib/selector.js?type=style&index=0!./src/views/home.vue 4:14-256 13:2-17:4 14:20-262

@shinygang
Copy link
Owner

内联在style 标签后面加 lang="sass"

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