title: How to change the publicPath in Create React App
body: <p>I want to change the root or public path of my app from <code>/</code> to <code>/something</code>. How? <a href="https://stackoverflow.com/questions/43419053/react-react-scripts-publicpath">This makes no sense</a> based on the title.</p>
  
  <p>I'm using React Router so <a href="https://create-react-app.dev/docs/deployment/#serving-the-same-build-from-different-paths" rel="nofollow noreferrer">this docs</a> cannot be used as in to set the "homepage" in <code>package.json</code>.</p>
  
  <p>I've added <code>webpack.config.js</code> to the root of the folder:</p>
  
  <pre class="lang-js prettyprint-override"><code>module.exports = {
      publicPath: '/v2/'
  }
  </code></pre>
  
  <p>Restarted and my asset, manigest etc files are still pointing at the root. This example worked with Vuejs in <code>vue.config.js</code>. How to achieve this without ejecting? I got <code>publicPath</code> from <a href="https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/config/webpack.config.js" rel="nofollow noreferrer">here</a>.</p>