-
Notifications
You must be signed in to change notification settings - Fork 23
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
Variables undefined when use sass-loader.options.data attribute #36
Comments
So what you're basically saying is, that the |
Ah, no, the imports are working, but the files don't see the vars from the |
Thank you for reply, @epegzz!
Yes, it is! I think there is inproper loading order. But I am not sure. |
Basically what the
to this:
So, as far as I understand Sass, the code in the @imported files should have access to those global vars 🤔 |
I'm not really familiar with the chainWebpack method. Could it be that the |
What about putting the @imports in a .sass file and load it as part of the
|
Hm, this would actually not work, since the sass files always come first. That's a stupid design! 🙈 😆 I could change that. It's basically #23 |
I have tried it and have got error while parsing |
Could you please implement this? #23 |
@dschox unfortunately I'm really busy lately and won't have the time to work on this currently. But I'm happy to merge any incoming PR :) |
@epegzz I think a PR is out of my league :) |
oh yeah, absolutely 👍 |
@epegzz Any news on this? :) |
The year is not over yet! 😆 |
@dschox file order is now respected in |
Thank You very much! And happy new year :) |
@epegzz I ran into the same issue and this works around the problem, thanks! 👍 |
I think we can close this... |
Maybe a mention in the README to the alternative |
Hello! I use
sass-vars-loader
with Vue Cli 3 and I try to move common scss-files to app config:But on app loaded I have got an error: "Undefined variable: $palette".
It works properly, when I importing common scss-files directly, but I want to import it all in one place.
Can you help me?
The text was updated successfully, but these errors were encountered: