LinuxCommandLibrary

sass

Compile Sass/SCSS files to CSS

TLDR

Convert a SCSS or Sass file to CSS and print out the result

$ sass [inputfile.scss|inputfile.sass]
copy

Convert a SCSS or Sass file to CSS and save the result to a file
$ sass [inputfile.scss|inputfile.sass] [outputfile.css]
copy

Watch a SCSS or Sass file for changes and output or update the CSS file with same filename
$ sass --watch [inputfile.scss|inputfile.sass]
copy

Watch a SCSS or Sass file for changes and output or update the CSS file with the given filename
$ sass --watch [inputfile.scss|inputfile.sass]:[outputfile.css]
copy

SYNOPSIS

sass [options] [output.css]

PARAMETERS


    The input Sass file to compile.

[output.css]
    The output CSS file to write to. If omitted, the CSS will be written to standard output.

--watch
    Watches the input file or directory and recompiles whenever changes are made.

--update
    Updates the output file if the input file has been modified. Can take multiple input:output pairs.

--style