pbarbiero / enhanced-electron-react-boilerplate

Modern and somewhat opinionated react+electron+webpack boilerplate
MIT License
61 stars 13 forks source link

Error in loading images #11

Open Saasvaap1511 opened 6 years ago

Saasvaap1511 commented 6 years ago

Hi, Thank you for providing such a boilerplate. I have been using this boiler plate to build my electron application. I added an image folder inside src/assets and imported images from the same inside react component. The images I import is loaded during development mode but not inside production mode. I searched on the Internet and some one has written to add url-loaders instead of file-loader in webpack build configuration. I did the same and it worked is this a correct solution or else what are my options

pbarbiero commented 6 years ago

There's nothing wrong with that at all. Having to resort to that probably means a different problem somewhere but it's still fine.