Skip to content
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

Open
softwaretechniker opened this issue May 23, 2020 · 4 comments
Open

Feature: Option "recursive" #108

softwaretechniker opened this issue May 23, 2020 · 4 comments

Comments

@softwaretechniker
Copy link

softwaretechniker commented May 23, 2020

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

@Luke1298
Copy link

Luke1298 commented Oct 1, 2020

+1

@softwaretechniker
Copy link
Author

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.
...and after migrating to SASS I even bought an IDE with file watcher functionallity 🤣

@jw-12138
Copy link

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.
...and after migrating to SASS I even bought an IDE with file watcher functionallity 🤣

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 🌝

@jonycheung
Copy link
Owner

jonycheung commented May 3, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants