You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a true need to 'intercept' the created CSS generated by LESS js. In 1.5.0, I was able to overload loadStyleSheets and return root.toCSS(less) for my purposes.
However, in 1.6.0 and greater, the minifier was changed, and loadStyleSheets doesn't retain its function name. Therefore, I can't find a way to get the CSS that was generated.
I thought I could just obtain it from the head, but IE does a nasty transposition to the set CSS, not allowing me to get the pure LESS-generated CSS.
Am I missing something, or is this an enhancement request?
For now, I've reverted to 1.5.0, and life is peachy.
Thanks in advance,
Kyle
The text was updated successfully, but these errors were encountered:
That, sir, is EXACTLY what I needed. I didn't realize it was a new feature. Glad to have it.
I have implemented it in my solution, and it works perfectly.
I'm not sure if documentation has been updated, but if anyone sees this thread, be sure that in your callback function, you return the style so LESS can continue. In my case, I just copied it to a local variable and then "return styles;".
I have a true need to 'intercept' the created CSS generated by LESS js. In 1.5.0, I was able to overload loadStyleSheets and return root.toCSS(less) for my purposes.
However, in 1.6.0 and greater, the minifier was changed, and loadStyleSheets doesn't retain its function name. Therefore, I can't find a way to get the CSS that was generated.
I thought I could just obtain it from the head, but IE does a nasty transposition to the set CSS, not allowing me to get the pure LESS-generated CSS.
Am I missing something, or is this an enhancement request?
For now, I've reverted to 1.5.0, and life is peachy.
Thanks in advance,
Kyle
The text was updated successfully, but these errors were encountered: