Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add directive @reference "<lib.less>" #1512

Closed
ruslanurban opened this issue Aug 26, 2013 · 2 comments
Closed

Add directive @reference "<lib.less>" #1512

ruslanurban opened this issue Aug 26, 2013 · 2 comments

Comments

@ruslanurban
Copy link

Use of @Refence directive would be similar to @import directive, with the exception that only the contents of the current and @import files will occur in the output.

This will allow for splitting less output into multiple files. (e.g. site and area-specific style sheets).

This will also help to overcome IE6-9 css selector limit (http://blogs.msdn.com/b/ieinternals/archive/2011/05/14/internet-explorer-stylesheet-rule-selector-import-sheet-limit-maximum.aspx), and this is the main reason for this request. Our project uses 2 frameworks (Bootstrap 3 and KendoUI), and our combined site css contains 4713 selectors, which exceeds IE6-9 limit. And, site.less uses variables and mixins from both frameworks. The @reference directive would allow us to split the output into multiple files which is problematic with the current implementation of LESS.

@jonschlinkert
Copy link
Contributor

Duplicate:

#1372
#1353
#1210
#1185
#1340

@jonschlinkert
Copy link
Contributor

Per your comment on 1340, please read the attached issues first. this feature has not been released yet. thus, no documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants