$ sass --color style.scss style.css
Error: Incompatible units em and px.
╷
1 │ $width: 15px + 2em
│ ^^^^^^^^^^
╵
style.scss 1:9 root stylesheet
$ sass --no-color style.scss style.css
Error: Incompatible units em and px.
╷
1 │ $width: 15px + 2em
│ ^^^^^^^^^^
╵
style.scss 1:9 root stylesheet
#### `--no-unicode`
{% compatibility '1.17.0' %}{% endcompatibility %}
This flag tells Sass only to emit ASCII characters to the terminal as part of
error 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.
By default, Sass emits warnings when deprecated features are used or when the
[`@warn` rule][] is encountered. It also silences the [`@debug` rule][].
[`@warn` rule]: /documentation/at-rules/warn
[`@debug` rule]: /documentation/at-rules/debug
```shellsession
$ sass --quiet style.scss style.css
```
#### `--quiet-deps`
This flag tells Sass not to emit deprecation warnings that come from
dependencies. It considers any file that's transitively imported through a [load
path] to be a "dependency". This flag doesn't affect the [`@warn` rule] or the
[`@debug` rule].
```shellsession
$ sass --load-path=node_modules --quiet-deps style.scss style.css
```
#### `--fatal-deprecation`
{% compatibility '1.59.0' %}{% endcompatibility %}
This option tells Sass to treat a particular type of deprecation warning as
an error. For example, this command tells Sass to treat deprecation
warnings for `/`-as-division as errors:
```shellsession
$ sass --fatal-deprecation=slash-div style.scss style.css
Error: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div(4, 2) or calc(4 / 2)
More info and automated migrator: https://sass-lang.com/d/slash-div
This is only an error because you've set the slash-div deprecation to be fatal.
Remove this setting if you need to keep using this feature.
╷
1 │ a { b: (4/2); }
│ ^^^
╵
style.scss 1:9 root stylesheet
```
The following deprecation IDs can be passed to this option:
ID | Version | Description |
---|---|---|
call-string |
0.0.0 | Passing a string directly to meta.call() . |
elseif |
1.3.2 | Using @elseif instead of @else if . |
moz-document |
1.7.2 | Using @-moz-document (except for the empty url prefix hack). |
new-global |
1.17.2 | Declaring new variables with !global . |
color-module-compat |
1.23.0 | Using color module functions in place of plain CSS functions. |
slash-div |
1.33.0 | Using the / operator for division. |
bogus-combinators |
1.54.0 | Leading, trailing, and repeated combinators. |
strict-unary |
1.55.0 | Ambiguous + and - operators. |
function-units |
1.56.0 | Passing invalid units to built-in functions. |
duplicate-var-flags |
1.62.0 | Using multiple copies of !global or !default in a single variable declaration. |