I want to change the root or public path of my app from /
to /something
. How? This makes no sense based on the title.
I'm using React Router so this docs cannot be used as in to set the "homepage" in package.json
.
I've added webpack.config.js
to the root of the folder:
module.exports = {
publicPath: '/v2/'
}
Restarted and my asset, manigest etc files are still pointing at the root. This example worked with Vuejs in vue.config.js
. How to achieve this without ejecting? I got publicPath
from here.