Skip to content

Importing sheets with dependencies on other npm packages #466

@marekpw

Description

@marekpw

I'm trying to import the @material/button library like this:

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

However the mdc-button tries to import from another library:

@import "@material/animation/variables";

Webpack/sass-loader understandably complains that the file is not found, because it's not prefixed with a tilde.

Is there any workaround/fix to this issue?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions