enhanced-electron-react-boilerplate icon indicating copy to clipboard operation
enhanced-electron-react-boilerplate copied to clipboard

Error in loading images

Open Saasvaap1511 opened this issue 6 years ago • 1 comments

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

Saasvaap1511 avatar Mar 09 '18 10:03 Saasvaap1511

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

pbarbiero avatar Mar 09 '18 13:03 pbarbiero