You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.
I have some issues with Image path. I have a React-Rails-Webpack project. I want to add a logo on header. Header,Sidebar and all other items are React components. (React router used for routing )
First issue
I have some issues with Image path. I have a React-Rails-Webpack project. I want to add a logo on header. Header,Sidebar and all other items are React components. (React router used for routing )
Webpack config file
Image loaded using require
Notice: JS and Image files are in same directory
On local server, their is no issue
Local server path
<img src="//localhost:3808/webpack/e6a2e7e6cfa80a367c09780b93d2cef6.png" alt="">
But on production (Heroku), the path become
But file available inside webpack folder in public folder. original path
webpack/e6a2e7e6cfa80a367c09780b93d2cef6.png
I have added this on webpack.config file for a quick fix
I don;t think this as good solution, Is there any good solution to fix my problem
Second issue
file
ordirectory
not found when i use like belowThe text was updated successfully, but these errors were encountered: