Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SASS to watch over whole root

Tags:

sass

ubuntu

I'm attempting to use SASS on a development server I have at home.

I'm trying to find a way to have SASS by default watching all the different sites (folders inside the web root). I wouldn't like if I had to manually set SASS to watch over each and every site and everytime I created a new site.

Basically, it would need to find every .scss/.sass modified inside the root and create a .css at the same location.

All I could find is the basic sass --watch origin:destination but it's not what I need, since all my SASS files would be in different folders.

Just in case, I'm running an Ubuntu server and I do have ruby+sass already installed.

Thanks.

like image 868
IOrlandoni Avatar asked Feb 20 '23 17:02

IOrlandoni


1 Answers

...Duh.

The obvious way is the correct way. The basic sass --watch origin:destination is recursive and does watch subfolders.

I feel dumb.

like image 83
IOrlandoni Avatar answered Feb 23 '23 08:02

IOrlandoni