Skip to content

Compiled scss to css file wont validate according to standard #109

@kledung

Description

@kledung

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"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions