RUBY(1)

πŸ“¦
version 3.7.4 Β· 2 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

RUBY(1) β€” the Sass one πŸ’…

okay bestie, so this is the RUBY(1) page from the User Commands section, and yes it's filed under Ruby but it's literally all about Sass, don't @ me.


✨ NAME ✨

Ruby β€” Sass compiles CSS from SASS files πŸŽ€


✨ SYNOPSIS ✨

sass [options] [INPUT] [OUTPUT]

✨ DESCRIPTION ✨

πŸ’– Description:

Converts SCSS or Sass files to CSS. that's the whole vibe, no notes ✨


πŸ’– Common Options:

  • -I, --load-path PATH β€” tell Sass where to look for an import path 🫢
  • -r, --require LIB β€” require a Ruby library before running Sass, like a little pre-game ritual πŸ’…
  • --compass β€” makes Compass imports available and loads the project configuration. iconic behavior πŸ‘‘
  • -t, --style NAME β€” the output style, bestie. it can be nested (the default, iykyk), compact, compressed, or expanded 🌸
  • -?, -h, --help β€” shows this help message. so meta πŸ’€
  • -v, --version β€” prints the Sass version, for when you gotta know πŸ‘€

πŸ’– Watching and Updating:

  • --watch β€” watches files or directories for changes. the location of the generated CSS can be set using a colon πŸ¦‹
sass --watch input.sass:output.css
sass --watch input-dir:output-dir
  • --poll β€” check for file changes manually, rather than relying on the OS. only meaningful for --watch fr fr
  • --update β€” compile files or directories to CSS. locations are set exactly like --watch ✨
  • -f, --force β€” recompile every Sass file, even if the CSS file is newer. only meaningful for --update, so don't get any ideas 😭
  • --stop-on-error β€” if a file fails to compile, exit immediately. only meaningful for --watch and --update πŸ’€

πŸ’– Input and Output:

  • --scss β€” use the CSS-superset SCSS syntax. superset means it's got range πŸ’œ
  • --sourcemap=TYPE β€” how to link generated output to the source files. the tea:
    • auto (default): relative paths where possible, file URIs elsewhere
    • file: always absolute file URIs
    • inline: include the source text in the sourcemap
    • none: no sourcemaps
  • -s, --stdin β€” read input from standard input instead of an input file. this is the default if no input file is specified πŸŽ€
  • -E, --default-encoding ENCODING β€” specify the default encoding for input files 🌈
  • --unix-newlines β€” use Unix-style newlines in written files. always true on Unix, so like... congrats Unix users 🫢
  • -g, --debug-info β€” emit output that can be used by the FireSass Firebug plugin. throwback energy πŸ”₯
  • -l, --line-numbers β€” emit comments in the generated CSS indicating the corresponding source line, extremely helpful bestie ⭐
  • --line-comments β€” (no description given, she's mysterious like that πŸ™ˆ)

πŸ’– Miscellaneous:

  • -i, --interactive β€” run an interactive SassScript shell. main character energy πŸ’…
  • -c, --check β€” just check syntax, don't evaluate. low stakes, high value ✨
  • --precision NUMBER_OF_DIGITS β€” how many digits of precision to use when outputting decimal numbers. defaults to 10 πŸ”’
  • --cache-location PATH β€” the path to save parsed Sass files. defaults to .sass-cache πŸ“
  • -C, --no-cache β€” don't cache parsed Sass files. no hoarding, we love a clean slate 🌸
  • --trace β€” show a full Ruby stack trace on error. buckle up 🎒
  • -q, --quiet β€” silence warnings and status messages during compilation. peace and quiet, obsessed 😌

heads up bestie: a couple of these only do anything in specific modes β€” --poll only matters for --watch, -f/--force only matters for --update, and --stop-on-error only matters for --watch and --update. don't come for me, it's in the docs πŸ’–

and that's the whole page!! this was Ruby Sass 3.7.4, dated November 2021, and it's the RUBY(1) page from User Commands, slay πŸ’…βœ¨ bye bestie 🫢

πŸ“¦ where this page comes from