RUBY(1)
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-pathPATH β tell Sass where to look for an import path π«Ά-r,--requireLIB β 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,--styleNAME β the output style, bestie. it can benested(the default, iykyk),compact,compressed, orexpandedπΈ-?,-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--watchfr 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--watchand--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 elsewherefile: always absolute file URIsinline: include the source text in the sourcemapnone: 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-encodingENCODING β 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 β¨--precisionNUMBER_OF_DIGITS β how many digits of precision to use when outputting decimal numbers. defaults to10π’--cache-locationPATH β 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 β--pollonly matters for--watch,-f/--forceonly matters for--update, and--stop-on-erroronly matters for--watchand--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
- debian bookworm: ruby-sass 3.7.4-5 Β· MIT
- ubuntu jammy: ruby-sass 3.7.4-5 Β· MIT
- ubuntu noble: ruby-sass 3.7.4-5 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms