-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[polaris.shopify.com] Get latest styles for local development #7554
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
Conversation
| @@ -0,0 +1,10 @@ | |||
| import fs from 'fs'; | |||
|
|
|||
| const builtStylesPath = '../polaris-react/build/esm/styles.css'; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming Polaris is always built when yarn dev runs, otherwise other things would fail as well, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only if it happens at the root of the monorepo. This could be a little bit confusing if someone is running just the website.
|
This has just been proven to be important in production as well. unpkg.com was not serving up our css for ~1.5hr. |
|
The way I hoped we would resolve this would be adding |
|
Closing in favour of global styles approach #7659 |
Pulling css from
https://unpkg.com/@shopify/polaris@latest/build/esm/styles.cssmeans that css can get out of sync when developing.Why this is important
We're currently developing documentation around alpha / beta components. These components are changing and our docs will too, let's make sure the css is synced so we're not seeing weird stuff!