Closed SeabassNg closed 10 years ago
Yes.
Create a main
.less file that imports all other less files and pass it to the compiler.
Ah! Very brilliant idea!
Currently, I'm trying to use the String version of the compile method put all the imports into a string to be compiled, but it looks like it doesn't know where to find the files. Is there any way to set the base url to find those files?
Actually, nvm. I managed to cobbled together a couple of classes that extends Abstract Hieracharchial Source class. Unfortunately, I'm now running into a Out of memory error, so need to figure out a way to lazy load the CSS
Closing this as answered. If you have more questions, feel free to re-open or create new issue.
Hi,
I was wondering if less4j can currently compile multiple less files together and then merge their source maps together to point back to the original line in the less files. Currently, it looks like if I combine the css output with the maps inlined, the browser is only looking at the last source map.