Skip to content

Conversation

eloytoro
Copy link
Contributor

@eloytoro eloytoro commented Mar 4, 2018

It seems that if you compose to a different class it will import the entire css twice.

Input

async-1.css

:local .base {
  composes: composed from './async-2.css';
  background: blue;
}

async-2.css

:local .composed {
  background: green;
}

Desired output

1.css

.base {
  background: blue;
}

2.css

.composed {
  background: green;
}

Current output

1.css

.composed {
  background: green;
}

.base {
  background: blue;
}

2.css

.composed {
  background: green;
}

@sokra
Copy link
Member

sokra commented Mar 7, 2018

Not sure about that. When chunk 1 is loaded it's missing the .composed styling in your desired output.

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

Successfully merging this pull request may close these issues.

2 participants