Skip to content
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

[Fix] Stabilize srcset in chromatic #10026

Merged
merged 4 commits into from
Apr 11, 2024
Merged

Conversation

esizer
Copy link
Member

@esizer esizer commented Apr 10, 2024

πŸ€– Resolves #9636

πŸ‘‹ Introduction

This may fix an issue with stories that include img[srcset] being unstable

πŸ•΅οΈ Details

I reached out to chromatic suppoer and they suggested preloading assets. I added the PreloadWebpackPlugin to see if that will sort things out. At the same time, I noticed we were not passing a static dir option for static assets so I also added that hoping it might make things a bit more stable πŸ€·β€β™€οΈ

πŸ§ͺ Testing

Assist reviewers with steps they can take to test that the PR does what it says it does.

  1. Check to diffs on separate chromatic runs to confirm it seems stable:

Copy link
Contributor

@vd1992 vd1992 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only one way to find out I suppose 🀷

Merged main and reran Chromatic - clean.
Storybook still works locally

@esizer esizer added this pull request to the merge queue Apr 11, 2024
Merged via the queue into main with commit a9d8c28 Apr 11, 2024
12 checks passed
@esizer esizer deleted the 9636-preload-images-for-storybook branch April 11, 2024 16:47
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.

πŸ› Unstable Chromatic snapshots - Manager's Home Page, Executive's Home Page
2 participants