-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Option "recursive" #108
Comments
+1 |
Because I still didn't found any alternatives, I migrated all my LESS sources to SASS (scss). It was easy using some other open-source-tool (just a few manual fixes). In SASS I have a (more powerfull) file-watcher out of the box and similar syntax and functionallity. Maybe this helps anyone waiting for that functionallity as well. |
I've noticed this problems few weeks ago, try my version of less compiler https://github.com/jw-12138/lessby, it has a recursive option 🌝 |
Thank you all. The library does recursively watch all files in subdirectories already if a folder is passed without a main file. But when a main file is passed, only the main file is recompiled upon any change. I think I could provide a way to watch multiple main files and recompile all of them when a change is detected in any of the subdirectories. would that work? |
Thank you very much for developing (or contributing to) that nice little watcher!
Actually if you'd like to limit watching files on a folder without any sub-folders, it is not possible yet.
Maybe a check on any configuration in lib/lessWatchCompilerUtils.js at line 83 would be enough?
A check on any option "recursive" would be nice, for defining watched main files (included files still needs to be watched, of course - what doesn't seem to be successfully watched recursively in current version?).
A matured alternative would be a recursion-"depth"-option, but it may get more complicated and the use-cases more rare, and could added afterwards, too.
Another helpful option in similar context could be the possibility to define multiple main-files.
Best regards
The text was updated successfully, but these errors were encountered: