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.
Written by Łukasz Niemier
Related protips
3 Responses
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.
@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.
Yep, there are definitely cases where it's not quite the right solution :)