Sass --watch

You are Here:

Sass --watch

The watch flag tells Sass to watch your source files for changes, and re-compile CSS each time you save your Sass.

Individual file

To watch individual file changes, you'd just add the watch flag to your command, like so:

Note: Any changes that are saved in basic.scss will affect basic.css file by the following command.

Command Prompt
sass --watch scss/basic.scss css/basic.css

Individual folder

To watch file changes inside individual folder, you'd just add the watch flag to your command, like so:

Note: Any changes to any file under the scss folder that is saved will affect the css folder by the following command.

Command Prompt
sass --watch scss:css

Reminder

Hi Developers, we almost covered 99.1% of Sass Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in Sass.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author