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 .sass files problem #156

Closed
mikeifomin opened this issue Nov 11, 2015 · 1 comment
Closed

@import .sass files problem #156

mikeifomin opened this issue Nov 11, 2015 · 1 comment

Comments

@mikeifomin
Copy link

I have simple structure with style.sass and _variables.sass files in the same level

// style.sass
@import variables

// _variables.sass
$var1:  10
$var2:  20

And it cause "Scss compiler error"

Dig dipper

When import in your code

const importer = function(url,prev,done){
     ...
     done({ contents: allFiles.get(parsed.path).getContentsAsString()});
}
...
const options = {
    ...
    importer: importer
}
...
sass.render(options,f.resolver());

importer in node-sass get contents but only in scss format (not sass)

@sebakerckhof
Copy link
Collaborator

Duplicate of #120

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