-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
How to import images #136
Comments
Right now we aren't doing anything specific for images. Feel free to open a PR! |
What does it mean in the READMe it's mentionned :
https://github.com/AnomalyInnovations/serverless-bundle#css-sass-and-image-files |
The docs on this are wrong. Currently for images, the imports are ignored. https://github.com/AnomalyInnovations/serverless-bundle/blob/master/src/webpack.config.js#L175 You could use the |
I have been working on adding support for React v17.0.1 for server-side rendering. It includes support for images. I am finding it challenging to add support for SVG as ReactComponent. I will share a link to my changes shortly. |
How is importing images supposed working ?
import "./assets/react.png";
what is this supposed to do ?I use the file-loader before
and imported the image path with
import MyImagePath from './assets/my_image.png';
doing the same will just assign an empty object to MyImagePath
The text was updated successfully, but these errors were encountered: