SASS(1)
π SASS(1) β the sass-convert glow-up guide π
okay bestie, welcome to the sass-convert page β it's filed under User Commands in the manual, and yes it's literally called Sass in the NAME line. iykyk.
β¨ NAME β¨
Sass β the way that sass-convert converts files between CSS... and honestly, so much more. she's a whole converter, periodt.
π SYNOPSIS π
sass-convert [options] [INPUT] [OUTPUT]
π¦ DESCRIPTION π¦
π Description
she converts between CSS, indented syntax, and SCSS files. like, for example? she can take your indented-syntax file and turn it into SCSS, or take plain CSS and make it SCSS (adding appropriate nesting along the way). not her inventing nesting for you and being iconic about it ππ
π Common Options
-F,--from FORMATβ which format you're converting from. the options arecss,scss,sass. by default she infers it from the input filename, but if there is no input filename at all, it defaults tocss. π«-T,--to FORMATβ which format you're converting to. can bescssorsass. by default she infers it from the output filename, and if there's no output filename, it defaults tosass. slay.-i,--in-placeβ converts a file to its own syntax. use this to update some deprecated syntax. glow-up in place, we love a self-improvement arc π«Ά-R,--recursiveβ converts all the files in a directory. requires--fromand--to, no exceptions bestie.-?,-h,--helpβ shows this help message. the classic.-v,--versionβ prints the Sass version. main character announcement energy.
π Style
--dasherizeβ converts underscores to dashes. little punctuation makeover β¨--indent NUMβ how many spaces to use for each level of indentation. defaults to2. and"t"means use hard tabs (tabs girlies rise).--oldβ outputs the old-style":prop val"property syntax. only meaningful when generating Sass, so don't come for her if you're not generating Sass, fr fr.
π Input and Output
-s,--stdinβ reads input from standard input instead of an input file. this is the default if no input file is specified. requires--from.-E,--default-encoding ENCODINGβ specify the default encoding for input files. tell her how to read the vibes.--unix-newlinesβ use Unix-style newlines in written files. always true on Unix, so on Unix this is giving "yes obviously" π
π§ Miscellaneous
--cache-location PATHβ the path to save parsed Sass files. defaults to.sass-cache.-C,--no-cacheβ don't cache to sassc files. no storage, no notes, just conversion.-q,--quietβ silences warnings and status messages during conversion. peace and quiet, she's meditating π§--traceβ shows a full Ruby stack trace on error. when things go wrong she shows you everything.
heads up bestie:--recursiveliterally requires--fromand--to, and--stdinliterally requires--from. don't skip them, she will not be happy. π
and that's the whole page, no cap π this manual page is from Sass 3.7.4, dated November 2021, served with love from the User Commands section β mwah, stan her, 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