Skip to content
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

Need help with material-component-web #1880

Open
Miaourt opened this issue Nov 6, 2019 · 1 comment
Open

Need help with material-component-web #1880

Miaourt opened this issue Nov 6, 2019 · 1 comment

Comments

@Miaourt
Copy link

Miaourt commented Nov 6, 2019

Hello !
The material-component-web package from NPM actually rely on a lot of other package, all under @material/<componentName>

In node_module, that should give us this folder layout :

|- @material |- <componentFolder1>
|            |- <componentFolder2>
|            |- <componentFolder3>
|            |- etc ...
|- material-component-web

Yes, a folder named @material with folder insides.

So the .scss of material-component-web actually need to import something like this :

@import "@material/button/mdc-button";
@import "@material/card/mdc-card";
@import "@material/checkbox/mdc-checkbox";
@import "@material/chips/mdc-chips";
@import "@material/data-table/mdc-data-table";
@import "@material/dialog/mdc-dialog";
@import "@material/drawer/mdc-drawer";

But since there is no direct @material folder and it's replaced with, for mdc-button, material__button instead of @material/button, sbt-sassify can't work at all...

I'm quite new to the Scala + SBT + Play world, so maybe it's impossible, but is there a way for me to have this specific output so sbt-sassify can freely build the sass files ?

@jamesward
Copy link
Member

Realized I never followed up on this. Sorry! Let me know if there is still anything I can help with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants