lessphp icon indicating copy to clipboard operation
lessphp copied to clipboard

Support @import (reference) directive

Open saas786 opened this issue 11 years ago • 4 comments

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

saas786 avatar Dec 04 '13 10:12 saas786

+1

This would drastically limit the amount of output CSS code when using it correctly.

vegardlarsen avatar Dec 28 '13 09:12 vegardlarsen

:+1:

vicary avatar Apr 03 '14 10:04 vicary

Yes please!

laurentvd avatar Dec 05 '14 11:12 laurentvd

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?

h0lg avatar Jan 20 '19 11:01 h0lg