izcc2a
Last Updated: February 25, 2016
·
936
· hauleth
Me

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.

Say Thanks
Respond

3 Responses
Add your response

1379
36b4b730bc6d058fd0737fc44119ed6f

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 ·
1386
Me

@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 ·
1400
36b4b730bc6d058fd0737fc44119ed6f

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

over 1 year ago ·