Open MaximBalaganskiy opened 4 years ago
Running into some weird sass.js behaviour I don't understand.
Also, @use
is blocked by medialize/sass.js#127, @import
might work if I can fix my current implementation.
Npm module sass.js
is currently the only sass implementation can run in browser.
Published some code. You might need to clean up browser cache.
The @use
would not work because it's missing from sass.js
npm module. The line is simply ignored.
You can use @import "@material/button/mdc-button";
but sass complains you have a syntax error in @material/button/mdc-button.scss
@include mixins.core-styles;
yeah... because google uses @use
which is ignored
That's unfortunate.
Would it be possible to replace @use
with @import
during bundling?
Definitely possible, but I am not willing to. Because sass @use
and @import
are semantically different (although I don't know enough details), I don't want to implement wrong hacking.
When I got time, I would have a look into sass.js
to see what stopped it from supporting @use
.
I think we can leave this issue open. It's still to be solved from sass.js.
Required, for example, for Google Material Design. Example gist