我正在使用Vue.js和單個文件組件方法。我的IDE是PhpStorm,我希望找到一種方法,以便.vue
文件中的<style></style>
中包含的SCSS得到很好的識別。單個文件組件中的Lint SCSS/SASS PhpStorm中的Vue.js
目前它看起來像我附加的圖片 - 我不知道它是一個插件安裝還是設置改變PhpStorm。
<template>
...
</template>
<script>
export default {
name: 'Tree',
components: {
},
}
</script>
<style lang="scss">
... My SASS/SCSS/CSS
</style>
呀,'類型= 「文/ SCSS」'做這項工作。這應該是正確的答案。之前的 一個'rel =「stylesheet/scss」'不起作用。 –