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

download and process <link … type="text/scss"> #1

Open
rodneyrehm opened this issue May 6, 2015 · 1 comment
Open

download and process <link … type="text/scss"> #1

rodneyrehm opened this issue May 6, 2015 · 1 comment

Comments

@rodneyrehm
Copy link
Member

Taking over from medialize/sass.js#28:

Create facilities to find <link … type="text/scss"> elements, download them and run them through Sass.compile(). Provide an importer callback to resolve nested @imports, possibly using URI.absoluteTo().

There is an initial attempt to make this work.

@bassjobsen
Copy link

Taking the demo at #2 (comment) into account. You should be able to read @import directive from source:

scssCode = xmlhttp.responseText;

If scssCode contain any @import "..." then find the URI and call read(uri) recursive. You still have to solve the asynchronism issues, but you dont need a modified version of sass.js

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