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

[Feature Request] Use image-loader within webpack instead of string for src value #17

Open
kopax opened this issue Dec 16, 2018 · 0 comments

Comments

@kopax
Copy link

kopax commented Dec 16, 2018

Hi, I am using create-react-app and Webpack 4.

I am using the default example from the README.md

I have in my developer console an assets loading error which cannot find the resource.

When I look at the source code, it seems that it does not use any loader for loading the image but just a src link.

This means that we need to copy the images somewhere in our assets, instead of directly using what we need in the code.

Because this involve copy, I suggest that we import the image using the appropriate loader like how it as been done here for json here

Related issues

@kopax kopax changed the title [Feature Request] Use image-loader within webpack instead of string for src [Feature Request] Use image-loader within webpack instead of string for src value Dec 16, 2018
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

1 participant