bem / create-bem-react-app

[deprecated] Create BEM React apps with no build configuration.
Other
25 stars 8 forks source link

BEM-loader for postcss #10

Closed kovchiy closed 7 years ago

kovchiy commented 7 years ago

If I want to use css-globals or parent block styles I have to write this:

/* NavBar-Item.css */

@import '../Globals/Globals.css';
@import '../NavBar.css';

.NavBar-Item {
    background: $color-brand;
    width: $navbar-width;
}

But I think this would be better:

/* NavBar-Item.css */

@import 'b:Globals';
@import 'b:NavBar';

.NavBar-Item {
    background: $color-brand;
    width: $navbar-width;
}
kovchiy commented 7 years ago

Issue moved to https://github.com/bem/bem-react-core/issues/95