Closed lucpotage closed 4 years ago
@lucpotage Any chance that you can take a look at my comments?
@justin808 I checked how the webpack sass-loader works and it seems they resolve the implementation based on the chosen dependency. What about doing the same?
The sass docs says:
Sass will gradually phase it out over the next few years, and eventually remove it from the language entirely.
What is not clear to me is whether we should force the use of @use in case you have the newest sass
dependency whereas @import
is clearly not yet deprecated.
Do you think adding a loader option rule
would make sense? With @import
or @use
possible values and @use
by default to follow the recommendation.
{
loader: 'sass-resources-loader',
options: {
rule: '@use', // or @import
},
}
Getting feedback from @nex3 would help.
@lucpotage I like your last idea. Can you take a try at implementing it?
@lucpotage did you see my previous comment?
Yes and I would like to try at implementing it but I definitely don't have the time right now. 😞
We've got some merge conflicts. And some CI issues.
Let me know when this is ready.
@lucpotage and @FloEdelmann, thank you for your efforts! Feel free to email me justin@shakacode.com. I've got a slack channel for this as well. You can find the link for Slack here: https://www.shakacode.com/open-source-projects.
See #117.
This definitely requires additional work but I hope you can find some time to test this PR and improve it. Thank you in advance.
I didn't bumped the npm version.
This change is