Skip to content
This repository has been archived by the owner on Feb 6, 2018. It is now read-only.

Don't parse files of elem and mods #51

Open
blond opened this issue May 9, 2016 · 0 comments
Open

Don't parse files of elem and mods #51

blond opened this issue May 9, 2016 · 0 comments

Comments

@blond
Copy link
Member

blond commented May 9, 2016

Example:

button/
  __text/
    button__text.css
    button__text.js

We can only test that stem (basename without extension) of the button__text.css file matches on button dirname.

const stem = getStem('button__text.css');

if (stem === 'button__text') {
    // add button__text
}

Now we still parse stem:

For modifiers you cannot use only stem because of key-value modifiers:

button/
  _size/
    button__size_m.css
    button__size_l.css
@blond blond changed the title Don't parse files of elem Don't parse files of elem and mods May 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant