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

Can someone explain import and depend_on #119

Open
chaomao opened this issue May 4, 2016 · 1 comment
Open

Can someone explain import and depend_on #119

chaomao opened this issue May 4, 2016 · 1 comment

Comments

@chaomao
Copy link

chaomao commented May 4, 2016

Hi, there
I read readme a lot of times and still confuse about it, can someone explain it in detail, especially about depend_on? Sorry for my poor english.

Any @import to a .less file will automatically declare that file as a sprockets dependency to the file importing it. This means that you can edit imported framework files and see changes reflected in the parent during development. So this:

@import "frameworks/bootstrap/mixins";

#leftnav { .border-radius(5px); }
Will end up acting as if you had done this below:

/*
 *= depend_on "frameworks/bootstrap/mixins.less"
*/

@import "frameworks/bootstrap/mixins";

#leftnav { .border-radius(5px); }
@chaomao
Copy link
Author

chaomao commented May 4, 2016

What's more, I found some issue are talking this again and again, could someone update readme and end this discuss.
@metaskills, please update readme carefully and clearly, I think it may save a lots of time to explain everyone.

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

1 participant