WebCompiler icon indicating copy to clipboard operation
WebCompiler copied to clipboard

Compiled scss to css file wont validate according to standard

Open kledung opened this issue 9 months ago • 1 comments

When I compile from scss to css, the encoding of the css is "UTF-8 with BOM". This puts a special character at the beginning of the compiled css file before @charset "UTF-8"; The special characters makes the CSS to not validate in W3C CSS validator with the following validation error: The @charset rule may only occur at the start of the style sheet. Please check that there are no spaces before it. @charset "UTF-8";

Is there a config option that will give the encoding of the output as "UTF-8" instead of "UTF-8 BOM"?

kledung avatar Feb 03 '25 15:02 kledung