---
-title: dart-sass
-homepage: https://github.com/webinstall/dart-sass
+title: sass
+homepage: https://github.com/sass/dart-sass
tagline: |
- dart-sass: A Dart implementation of Sass. Sass makes CSS fun again.
+ sass: The reference implementation of Sass, written in Dart. Sass makes CSS fun again.
---
-To update or switch versions, run `webi example@dart-sass` (or `@v2`, `@beta`,
-etc).
+To update or switch versions, run `webi sass@stable` (or `@v2`, `@beta`, etc).
## Cheat Sheet
-> Dart Sass has replaced Ruby Sass as the canonical implementation of the Sass language.
+> Dart Sass has replaced Ruby Sass as the canonical implementation of the Sass
+> language.
### Command format:
+
```bash
sass <input.scss> [output.css]
```
+
or
+
```bash
sass <input.scss>:<output.css> <input/>:<output/> <dir/>
```
-
-| Input and Output | Functionality |
-|------------------|-----------------------------------------------------------|
+| Input and Output | Functionality |
+| ---------------- | --------------------------------------------------------- |
| --[no-]stdin | Read the stylesheet from stdin. |
| --[no-]indented | Use the indented syntax for input from stdin. |
| -I, --load-path= | A path to use when resolving imports. |
| -s, --style= | Output style. |
| --[no-]charset | Emit a @charset or BOM for CSS with non-ASCII characters. |
| --[no-]error-css | When an error occurs, emit a stylesheet describing it. |
-| --update | Only compile out-of-date stylesheets. |
\ No newline at end of file
+| --update | Only compile out-of-date stylesheets. |
#!/bin/bash
-function __init_dart-sass() {
+function __init_sass() {
set -e
set -u
##################
- # Install dart-sass #
+ # Install sass #
##################
- pkg_cmd_name="dart-sass"
+ pkg_cmd_name="sass"
- pkg_dst_cmd="$HOME/.local/bin/dart-sass"
+ pkg_dst_cmd="$HOME/.local/bin/sass"
pkg_dst="$pkg_dst_cmd"
# no ./bin dir here because of how the macOS version is packaged
}
pkg_get_current_version() {
- echo $(dart-sass --version 2>/dev/null | head -n 1 | cut -d ' ' -f 2)
+ echo $(sass --version 2>/dev/null | head -n 1 | cut -d ' ' -f 2)
}
}
-__init_dart-sass
+__init_sass