Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

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

Open
nex3 opened this issue Apr 6, 2018 · 0 comments
Open

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

nex3 opened this issue Apr 6, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@nex3
Copy link
Contributor

nex3 commented Apr 6, 2018

From sass/sass#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.

@nex3 nex3 added the bug Something isn't working label Apr 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant