Skip to content
This repository was archived by the owner on Mar 27, 2019. It is now read-only.

CSS ordering remote & local components??? #599

Closed
clintwood opened this issue Aug 22, 2014 · 7 comments
Closed

CSS ordering remote & local components??? #599

clintwood opened this issue Aug 22, 2014 · 7 comments

Comments

@clintwood
Copy link
Contributor

From the wiki doc on css ordering it is not clear to me what order (if any) is guaranteed for remote components.

From the wiki I understand that remote component CSS is included first then local CSS from .locals is appended after that.

Is there any order to the remote component CSS?
Is there a way to enforce order of CSS for remote and local components?
What effect does component-bundler have on this order, does it preserve order when bundling?

@jonathanong ?

@timaschew
Copy link
Member

maybe related: componentjs/builder2.js#29

@clintwood
Copy link
Contributor Author

Thanks @timaschew, will take a look...

@jonathanong
Copy link
Contributor

yeah, remotes before locals per bundle.

@clintwood
Copy link
Contributor Author

@jonathanong, figured that thanks, but are remotes ordered in the order they are required or on whichever downloads first?

@jonathanong
Copy link
Contributor

Order they are required. Remotes are all resolved before locals. There's a "flatten" function somewhere that has all the logic

@clintwood
Copy link
Contributor Author

@jonathanong, thanks for your time...

@clintwood
Copy link
Contributor Author

hahaha, @timaschew, yup, its definitely this: componentjs/builder2.js#29... a day later with randomly breaking CSS...

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

3 participants