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

chore: Remove @sveltejs/enhanced-img #905

Merged
merged 3 commits into from
Mar 14, 2024
Merged

chore: Remove @sveltejs/enhanced-img #905

merged 3 commits into from
Mar 14, 2024

Conversation

AdrianGonz97
Copy link
Collaborator

@AdrianGonz97 AdrianGonz97 commented Mar 14, 2024

While @sveltejs/enhanced-img is a great plugin for optimizing images for SK, it unfortunately slows down our build pipeline by a significant amount. Previously, it would take a little under 2 minutes to complete a fresh build, whereas now it takes about 8 minutes.

Currently, there's no available plugin/config option to cache the generated images, meaning that all images need to be processed (twice!) on every build. Our little GH runner just can't keep up.

We'll reevaluate once the ability to cache is implemented.

Before submitting the PR, please make sure you do the following

  • If your PR isn't addressing a small fix (like a typo), it references an issue where it is discussed ahead of time and assigned to you. In many cases, features are absent for a reason.
  • Prefix your PR title with feat:, fix:, chore:, or docs:.
  • This message body should clearly illustrate what problems it solves.
  • Format & lint the code with pnpm format and pnpm lint

Copy link

changeset-bot bot commented Mar 14, 2024

⚠️ No Changeset found

Latest commit: fdf4555

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

github-actions bot commented Mar 14, 2024

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
shadcn-svelte ✅ Ready (View Log) Visit Preview fdf4555

@AdrianGonz97 AdrianGonz97 merged commit 5633226 into main Mar 14, 2024
4 checks passed
@delete-merged-branch delete-merged-branch bot deleted the chore/speed-up-ci branch March 14, 2024 23:05
@shyakadavis
Copy link
Contributor

Howdy, @AdrianGonz97

Given this recent P.R landing, JonasKruckenberg/imagetools#661, does this sound like a solution to the problem, ergo worth it re-introducing enhanced-img? (My assumption is that that tool powers enhanced-img, right?)

@AdrianGonz97
Copy link
Collaborator Author

@shyakadavis How exciting! We'll definitely reimplement it once a release is published. Thanks!

@shyakadavis
Copy link
Contributor

If you're ever short on time or the like, please let me know, and I'd be happy to submit a P.R. 🙂

@julien-blanchon
Copy link

Seems that it's merged and v7 is available !!

@shyakadavis
Copy link
Contributor

This is nice to hear. Waiting on sveltejs/kit#12055 and we "should" be ready to go - hopefully.

@julien-blanchon
Copy link

Howww yes you'r right ... I hope this will not be too long

@julien-blanchon
Copy link

julien-blanchon commented Mar 29, 2024

Last step: sveltejs/kit#12059

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.

3 participants