Why does Sass prepend an incorrect @charset rule?

前端 未结 2 758
我在风中等你
我在风中等你 2020-12-09 11:05

I use

sass --watch scss:css

to have Sass automatically create CSS files (and put them in the /css directory) for each SCSS fi

相关标签:
2条回答
  • 2020-12-09 11:20

    Try adding @charset "UTF-8"; to your original SCSS file, SASS shouldn't override it/add its own then.

    0 讨论(0)
  • 2020-12-09 11:29

    Like @Alireza-Fatahi states in this answer, you could save a line in CSS output and instead go for a default Charset on external files, by adding this line to your config.rb in your project folder:

    Encoding.default_external = "UTF-8"
    
    0 讨论(0)
提交回复
热议问题