Closed Akshay090 closed 4 years ago
@Akshay090 You don't have to import image assets, webpack automatically copies source/assets
folder to build
directory under assets
folder.
Copy the image to source/assets
folder and use it with
<img src="assets/logo.jpg" />
Feel free to reopen this if the issue still persist.
oh I didn't knew that. I don't think there would be any special benefit to import image as we typically do in normal react app. Your method of doing it is good.
create-react-app has loaders to handle the asset imports.
I didnt want to add more loaders to the boilerplate as webextensions usually do not require much of images.
webpack gives error for importing images in react