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

External Image from API #253

Open
ekoydakoykoy opened this issue Jul 31, 2021 · 1 comment
Open

External Image from API #253

ekoydakoykoy opened this issue Jul 31, 2021 · 1 comment

Comments

@ekoydakoykoy
Copy link

I wanted to use this library but I cant make it work using external url (images) coming from an API.

@AndrewUsher
Copy link

From #74, it seems like this isn't possible ☹️ :

This is not possible, unfortunately. Since this is only a webpack loader, it can only handle local files (you can also not import remote js files with webpack). If you are in charge of the API, you can optimize the images in the API (e.g. on upload). If you are using a 3rd party API and they haven't optimized their images, you could also use an image optimization proxy in front of their images.

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

No branches or pull requests

2 participants