Recompile LESS on file write from client
Closed this issue · 1 comments
simpsondesign commented
I've got a scenario where I'm allowing a user to write back to the LESS file on the server. As far as I know, there's no way to recompile that LESS file out to CSS with less-middleware unless I reload the entire page - which I do not want to do.
Before switching from LESS to less-middlware, I was accomplishing this with less.refresh().
Can you offer any suggestions on how I might accomplish this?
Zoramite commented
Can you give an example of the flow and what you are trying to do?
Do you want allow the user the edit the less file and have it affect the current page without refreshing the page? If that is the case then you could do a hack similar to this: http://stackoverflow.com/a/2024618/1172228