Jinxin Ni
Jinxin Ni

Reputation: 331

What's the difference between sass update and sass watch

What is the difference bewtween sass --update and sass --watch. Why can't I find any reference of all the common options that sass provide when you type in sass --help

Upvotes: 3

Views: 1979

Answers (1)

justin
justin

Reputation: 1548

two things

1: if you type sass --help you should be getting a help page that looks something like this:

enter image description here

If not, you might have a deeper problem.

2: while it's not a obvious difference, the documentation for sass --watch says:

--watch     Watch 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

While the documentations for --update says

--update    Compile files or directories to CSS.
            Locations are set like --watch.

--update only compiles the files or directory, while --watch will watch for changes and recompile whenever the source files are modified.

Upvotes: 1

Related Questions