LoginSignup
4
2

More than 5 years have passed since last update.

gulp-sassでError: Invalid US-ASCII character "xE3"になる場合の対処

Last updated at Posted at 2015-04-28

解決法

gulp-sassでSCSS→CSSに変換する際に、文字エンコーディングを定義していない状態でCSS内に日本語を含むとこのエラーを吐きます。

スクリーンショット 2015-04-28 10.57.42.png

日本語を使用しているSCSSの先頭の行に、@charset "UTF-8";を定義すると解決できます。
@importで外部SCSSを読み込んでいる場合は、日本語を使用しているファイルのみに定義すれば大丈夫です。

font-familyの指定などで引っかかる場合が多いので、要注意です。

4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2