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

Dynamic imports? #658

Closed
NickHeiner opened this issue Feb 12, 2013 · 2 comments
Closed

Dynamic imports? #658

NickHeiner opened this issue Feb 12, 2013 · 2 comments

Comments

@NickHeiner
Copy link

For my current project, I need to be able to do dynamic imports as described here:

http://stackoverflow.com/questions/14782954/dynamic-imports-for-scss

Is this possible? If not, are you amenable to a PR implementing it?

@nex3
Copy link
Contributor

nex3 commented Feb 23, 2013

This is purposefully disallowed. Sass needs to be able to efficiently walk the import tree of a set of stylesheets in order to figure out the dependencies between them so it can detect which stylesheets changing need to trigger updates. This efficiency is impossible if determining imports requires Sass to compile the entire stylesheet.

@nex3 nex3 closed this as completed Feb 23, 2013
@chriseppstein
Copy link

See #739

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

3 participants