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

Nested files don't get passed '~' option #108

Closed
richardbutler opened this issue Jun 18, 2015 · 4 comments
Closed

Nested files don't get passed '~' option #108

richardbutler opened this issue Jun 18, 2015 · 4 comments

Comments

@richardbutler
Copy link

If I have a library in node_modules, which is imported by a partial, then imported again, I get ERROR in ... File to import not found or unreadable.

Given node_modules/somelib/colours.scss exists, this doesn't work:

sass/core/_colours.scss:

@import '~somelib/colours.scss';

src/components/Thing.scss:

@import 'core/colours';

src/components/Thing.jsx:

require('./Thing.scss');

However, this works:

src/components/Thing.scss:

@import '~somelib/colours.scss';

src/components/Thing.jsx:

require('./Thing.scss');

Note I'm running on Windows 7.

@richardbutler
Copy link
Author

Possibly related to #102 and #107.

@jhnns
Copy link
Member

jhnns commented Jun 30, 2015

Thx for reporting this. I'll have a look as soon as I found some time. Unfortunately I'm loaded with work... 😒.

In the meantime, you can also take a look for yourself. The code is not complicated, but it requires some understanding about how to write loaders for webpack.

@jhnns
Copy link
Member

jhnns commented Aug 3, 2015

Is this still an issue with the recent version of sass-loader?

@jhnns
Copy link
Member

jhnns commented Aug 6, 2015

Should be fixed with 2.0.0

@jhnns jhnns closed this as completed Aug 6, 2015
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