From 96632b9c02cbf0d19ca8e646cd8f2e51394b4b0a Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Sun, 7 Apr 2019 16:43:49 -0700 Subject: [PATCH] Document the --unicode flag See sass/dart-sass#566 --- .../documentation/cli/dart-sass.html.md.erb | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/source/documentation/cli/dart-sass.html.md.erb b/source/documentation/cli/dart-sass.html.md.erb index 1fc59df..3d789a6 100644 --- a/source/documentation/cli/dart-sass.html.md.erb +++ b/source/documentation/cli/dart-sass.html.md.erb @@ -314,6 +314,31 @@ $width: 15px + 2em ^^^^^^^^^^ style.scss 1:9 root stylesheet +#### `--no-unicode` + +This flag tells Sass only to emit ASCII characters to the terminal as part of +error and warning messages. By default, or if `--unicode` is passed, Sass will +emit non-ASCII characters for these messages. This flag does not affect the CSS +output. + +```shellsession +$ sass --no-unicode style.scss style.css +Error: Incompatible units em and px. + , +1 | $width: 15px + 2em; + | ^^^^^^^^^^ + ' + test.scss 1:9 root stylesheet + +$ sass --unicode style.scss style.css +Error: Incompatible units em and px. + ╷ +1 │ $width: 15px + 2em; + │ ^^^^^^^^^^ + ╵ + test.scss 1:9 root stylesheet +``` + #### `--quiet` This flag (abbreviated `-q`) tells Sass not to emit any warnings when compiling.