我在vscode中,创建.vue文件,然后在vue文件中内置less代码:
但是出现了下面的警告:} expected css(css lcurlyexpected),但是不影响使用,![2D)X]`NCGBF7RD_UUVJQEU9.png](https://img.haomeiwen.com/i13294727/6632b70663aedc82.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
解决方案:
如果使用了 vetur 插件后发现还是无法识别 .vue 中的 less 语法的话,可以看看右下角的语言模式是不是 Vue,如果不是,请改为 Vue.
全局设置:
"files.associations": {
"*.vue": "vue",
"*.tpl": "html"
},
网友评论