-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
Loading transient sass modules through npm #227
Comments
I think using a custom importer and #234 would allow you to work around this issue |
I think it makes sense to add the |
I'm having a similar problem. I'm importing a scss file from an installed npm node module. The imported file, in turn, has an import with coming from a node module but has the syntax I've tried adding node_modules to the includePath and using |
/cc @jhnns To be honest, I do not even represent a better solution than own |
Seems duplicate #466. Feel free to reopen if it is different problem. Fast solution as said jhnns #227 (comment) |
Hey guys,
Firstly, really loving the project, very easy to setup and get started. I have an interesting problem that I"m trying to solve, which involves transiently trying to resolve scss files from
node_modules
. Let's say for example we have:In
index.scss
we want to do the following:Subsequently,
colors.scss
is importing stuff from thevariables.scss
It's a pretty silly example, but outlines the fact that some legacy code requires the importing of other modules. When I resolve the
index.scss
, it manages to find thecolors.scss
file, but because the path ofcolors.scss
isfoo/variables
and not~foo/variables
, it cannot find the module.Is this something, where I'd have to modify the
colors.scss
file manually, or is there some webpack configuration or node-sass configuration I can do that will be able to resolve the `@import 'foo/variables' from the node_module?It's probably worth mentioning that I'm not doing anything special in the
webpack.config.js
. Relative to the above example it's just a basicstyle!css!sass!index.scss
Thanks guys :)
The text was updated successfully, but these errors were encountered: