Last Updated: February 25, 2016
·
1.226K
· hauleth

Faster preview of Sass/SCSS projects

Sass and SCSS team doesn't provide official equivalent for LESS.js JavaScript library that compile LESS stylesheets on the fly, but instead we have something IMHO even better:

sass --watch somedir my_file.sass:out_file.css

Now when we change any one of files in somedir or my_file.sass the out_file.css will be rerendered.

3 Responses
Add your response

You can also use compass; with a proper config.rb (this might be inferred if you don't have it yet), you can run compass watch and it will automatically compile all your SASS files in your SASS directory to your CSS directory.

over 1 year ago ·

@shadowfiend Yes, but sometimes Compass is over bloated or i.e. we are creating independent theme/framework (like Bootstrap or MetroUI), not whole website frontend. Then not relying on any existing framework is good idea.

over 1 year ago ·

Yep, there are definitely cases where it's not quite the right solution :)

over 1 year ago ·