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

import inline option #1209

Closed
lukeapage opened this issue Mar 5, 2013 · 3 comments
Closed

import inline option #1209

lukeapage opened this issue Mar 5, 2013 · 3 comments

Comments

@lukeapage
Copy link
Member

implement the inline option from

#1185

copies the contents of a file into the less, rather than reference it. e.g.

@import "file.css";

would at the moment become

@import "file.css";

and this option e.g.

@import (inline) "file.css";

would inline the css so it becomes

// I am a css file, I use a css hack less has never worked with
.a/*\*/.b*/ { color: black; }

(bad example above, can't remember my hacks!)

only valid with a css file

@itspolo
Copy link

itspolo commented Mar 5, 2013

This will be very useful, thanks!

lukeapage added a commit that referenced this issue Mar 19, 2013
@lukeapage
Copy link
Member Author

in 1.4.1 branch

lukeapage added a commit that referenced this issue Mar 20, 2013
lukeapage added a commit that referenced this issue Mar 21, 2013
@cscott cscott mentioned this issue Mar 21, 2013
@atomi
Copy link

atomi commented Mar 21, 2013

I just wanted to say that I couldn't wait to try this and I ran this to install the latest from the WIP branch:

npm -g install https://github.com/cloudhead/less.js/tarball/1.4.1-wip

The (inline) option seems to be working great.
Thanks guys!

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

No branches or pull requests

3 participants