sass / ruby-sass

The original, now deprecated Ruby implementation of Sass
https://sass-lang.com
MIT License
183 stars 38 forks source link

Error: @charset may only be used at the root of a document. #45

Open nex3 opened 6 years ago

nex3 commented 6 years ago

From https://github.com/sass/sass/issues/2023:

Take this document one.sass:

@charset "UTF-8"
/*  © Yajo
.other
    @import "other"

Then this another _other.sass:

@charset "UTF-8"
/*  © Yajo
.someclass
    display: none

Then:

sass \
        --cache-location /var/cache/sass\
        --compass\
        --require bootstrap-sass\
        --update /app:/app\

Says:

      error /app/...../static/src/css/_other.sass (Line 1: @charset may only be used at the root of a document.)

... but I need UTF8 for ©! And docs say that @charset only goes into CSS when there's any non-ASCII character, so it should even be automatic.