The question: How to make WebStorm to understand scss
in html
Description:
I'm have existed project based on vue.js
I've associate .vue
with html
language (.vue
== .html
).
In general *.vue
files have structure like:
<template>
...
</template>
<script>
...
</script>
<style lang="scss">
$some_var: 10px;
.parent_class {
.child_class {
padding: $some_var;
}
}
</style>
The problem is that WebStorm didn't expect to see scss
(instead of pure css
) in html.
I know that "WebStorm" (as well as "IDEA") has language injection
.
But it's a bit challenging for me to understand how to use language injection properly.
UPD: look likes it's may be impossible for now because scss
is template language (mean not injectable for a while): https://stackoverflow.com/a/29062183/930170