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

Adds note on using with next/image component #57

Merged
merged 1 commit into from
Oct 28, 2020

Conversation

mikaelbr
Copy link
Contributor

Hi! Thanks for the package. Use it a lot and love it for creating semantically grouped resources in feature folders!

Today Vercel announced Next.js 10.0.0. In 10.0.0 you have the next/image component which optimizes images either through servers, external loaders, or Vercel. In any case, it seems to work with next-images and resolving images not placed in public/ folder. However, obviously, it doesn't play well with Data URLs and thus there can be some issues with the default value of inline images with this package. Also, I think much of the cases where Data URLs are handy can be optimized better with coachable generated webp files. So this PR adds a note on using with next/image component and recommends deactivating inline images entirely when doing so.

@arefaslani
Copy link
Member

@mikaelbr Thanks for updating the readme file! I think I should check next/image to see how we can play nice with it in the future 👍

@arefaslani arefaslani merged commit 43f55c0 into twopluszero:master Oct 28, 2020
@mikaelbr
Copy link
Contributor Author

FYI, I also posted this PR that should help with potential issues regarding this: vercel/next.js#18326

@arefaslani
Copy link
Member

@mikaelbr Cool, thanks 🙏

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