lessphp
lessphp copied to clipboard
Support @import (reference) directive
Hi, I am using some *.less files as a reference only (use their variables, classes, etc but don't compile into output).
like:
@import (reference) "my-file.less";
its not working, included into final *.css file as is.
https://github.com/less/less.js/issues/1340 http://stackoverflow.com/questions/14809546/twitter-bootstrap-override-and-custom-styles
according to these its working fine with less.js but I compile via lessphp, so please guide me how I can achieve same results with lessphp.
Thanks
+1
This would drastically limit the amount of output CSS code when using it correctly.
:+1:
Yes please!
I agree this would be nice to have.
I notice though that I'm running a really old version with the 3rd party library I'm using https://github.com/Singrana/yii2-less/issues/4 . The change log https://github.com/less/less.js/blob/master/CHANGELOG.md states that this was included in version 1.5.0 as "support for import reference option to reference external css, but not output it.".
So is this issue actually still open?