-
Notifications
You must be signed in to change notification settings - Fork 84
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
Interface & impl for filters to provide list of files that invalidate the cache #80
Comments
less directory can be watched insted of root file |
That's not enough imho. I would preffer to parse the file and find all imports and watch those files. |
It is much simpler then parsing less files and I think it would be ok for most users. Gulp and grunt watch plugin works this way (user specifies paths and file path patterns where files to watch are located). Also watching for directories would be probably faster then parsing in most cases. |
It would definitely be faster, but the files must be parsed anyway, and if lessphp would provide api with list of includes that it found while parsing the file, it would be ideal. |
lessc (#93) has |
I've fixed an issue with dependent LESS files. Webloader now detects changes made in files imported using @import. |
Initial support added in a5575b7. I'm not sure if this can be considered a final solution, but it should work nicely at least for simple use-cases. |
The less (and others) can
@import
other files, but webloader is watching only the root file. This means that the cache is not invalidate in such case.The text was updated successfully, but these errors were encountered: