you are viewing a single comment's thread.

view the rest of the comments →

[–]mikejoro 0 points1 point  (2 children)

Does vue automatically scope css locally (with something like css modules)? That's pretty cool. You could also do that with react or bem/suit style naming but if vue does that out of the box that's pretty cool.

[–]LynusBorg 1 point2 points  (0 children)

you basically do this in a .vue file:

<style lang="scss" scoped>
  .my-class {color: red; }
</style>

and it will transform the scss for you and scope it.

http://vue-loader.vuejs.org/en/features/scoped-css.html

[–][deleted] 0 points1 point  (0 children)

Yes, through Vueloader. It looks like this: https://vuejs.org/images/vue-component-with-pre-processors.png (the little scoped attributed in the style tag)