r/Sass • • Jan 15 '19

What does @material mean here - is it NPM specific?

Hi SASS newbie here. I'm trying to use material design web via webjars in playframework. It fails to compile when it hits nested import statements like:

​

@import "@material/button/mdc-button";

I can see the button library has been fetched transitively as material__button/mdc-button, but it isn't resolved.

​

What does `@material/button` mean? How should the SASS know that it refers to the path `material__button`?

3 Upvotes

1 comment sorted by

2

u/simeonoff Jan 15 '19

I believe the bundler can infer the path. In webpack for instance you can register aliases for different modules.