Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

@supports won't transpile in Visual Studio LESS file

When trying to use @supports in a LESS file, it won't transpile to CSS in Visual Studio.

I get a green line under the space after @supports saying: Colon expected

I've tried every possible solution including CSS.supports (JS formatting - which compiled but didn't work) and @@supports which escapes the LESS @function_name: which the VS LESS compiler assumed it was.

like image 728
Trent Avatar asked Oct 28 '25 16:10

Trent


1 Answers

I couldn't resolve the issue in the LESS file in Visual studio because the transpiler does not seem to support @supports (ironically).

Instead I put the snippet in the HTML header, and eventually in it's own rare CSS file until support is fixed in VS

like image 124
Trent Avatar answered Oct 30 '25 06:10

Trent



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!