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 from node_modules different from node-sass #615

Closed
tomByrer opened this issue Mar 5, 2019 · 3 comments
Closed

@import from node_modules different from node-sass #615

tomByrer opened this issue Mar 5, 2019 · 3 comments

Comments

@tomByrer
Copy link

tomByrer commented Mar 5, 2019

given: sass src/css/video-js.scss dist/video-js.css
& in video-js.scss this import does not work for dart-sass, but did in node-sass:

...
@import "node_modules/videojs-font/scss/icons";

Though with dart-sass, this does work:

`@import "../../node_modules/videojs-font/scss/icons";`

Is this expected behavior or a bug?

@nex3
Copy link
Contributor

nex3 commented Mar 5, 2019

Dart Sass's command-line interface doesn't look for imports in any location that's not explicitly provided as a --load-path on the command line. Node Sass's CLI may behave differently.

@nex3 nex3 closed this as completed Mar 5, 2019
@tomByrer
Copy link
Author

tomByrer commented Mar 6, 2019

Thanks for the info!

I tried to look that up in the docs, but was discouraged & confused by the Ruby references in the options section.

@nex3
Copy link
Contributor

nex3 commented Mar 6, 2019

We're working on updating the website so hopefully these things will be easier to find!

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