Skip to content

Commit

Permalink
Name casing: SASS → Sass (#471)
Browse files Browse the repository at this point in the history
https://sass-lang.com
https://github.com/sass/dart-sass
https://sass-lang.com/libsass
https://en.wikipedia.org/wiki/Sass_(stylesheet_language)
https://twitter.com/SassCSS

Sass is neither an acronym/initialism nor is it stylized as SASS
anywhere. SCSS syntax meets this criteria, but Sass does not.
  • Loading branch information
toastal committed Jun 7, 2023
1 parent bf49d69 commit 0d372f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/pages/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,6 @@ By default, Lightning CSS is strict, and will error when parsing an invalid rule

Lightning CSS supports generating source maps when compiling, minifying, and bundling your source code to make debugging easier. Use the `sourceMap` option to enable it when using the API, or the `--sourcemap` CLI flag.

If the input CSS came from another compiler such as SASS or Less, you can also pass an input source map to Lightning CSS using the `inputSourceMap` API option. This will map compiled locations back to their location in the original source code.
If the input CSS came from another compiler such as Sass or Less, you can also pass an input source map to Lightning CSS using the `inputSourceMap` API option. This will map compiled locations back to their location in the original source code.

Finally, the `projectRoot` option can be used to make file paths in source maps relative to a root directory. This makes build stable between machines.
2 changes: 1 addition & 1 deletion website/pages/transpilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ Lightning CSS can also be configured to compile several draft specs that are not

### Nesting

The [CSS Nesting](https://drafts.csswg.org/css-nesting/) draft spec enables style rules to be nested, with the selectors of the child rules extending the parent selector in some way. This is very commonly supported by CSS pre-processors like SASS, but with this spec, it will eventually be supported natively in browsers. Lightning CSS compiles this syntax to un-nested style rules that are supported in all browsers today.
The [CSS Nesting](https://drafts.csswg.org/css-nesting/) draft spec enables style rules to be nested, with the selectors of the child rules extending the parent selector in some way. This is very commonly supported by CSS pre-processors like Sass, but with this spec, it will eventually be supported natively in browsers. Lightning CSS compiles this syntax to un-nested style rules that are supported in all browsers today.

Because nesting is a draft, it is not enabled by default. To use it, enable the `nesting` option under `drafts` when calling the Lightning CSS API. When using the CLI, enable the `--nesting` flag.

Expand Down

0 comments on commit 0d372f6

Please sign in to comment.