I have a React app I\'ve been developing on my localhost. I want to copy it to a server into a subdirectory called vensa.
My webpack config file looks like this..
Adding to trenthogan's reply, we can assign basename to location.pathname
const loc = window.location || {};
With this change, the app will work even if the subdirectory path changes in the future.