When using SASS maps in Visual Studio it always shows the error
Unexpected character sequence
I realize that this is due to Visual Studio not supporting SASS maps but there are also ways of suppressing compiler warnings, usually by adding #pragma warning disable(####)
but there are two problems when trying to do this in the CSS editor. First #
designates an ID and second the warning output does not contain a code.
Do I need to add something to my lint or is there a way to suppress these?
Did you install any extension in Visual studio to compile sass file ? By default VS do not have any config to compile SASS or SCSS to CSS. Maybe you install some extension like this WebCompiler
in Tools > options > text editor > scss > advanced: there is a section called "validation" , set "enable validation" to false.
there is also a section called "css" in the options.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.