title: react.js - running npm run build with custom paths
body: <p>Running <code>npm run build</code> command on <code>create-react-app</code> project creates a build folder and some default paths inside all files like in map files:</p>
  <pre><code>{&quot;version&quot;:3,&quot;sources&quot;:[&quot;../static/js/main.500cb0d9.js&quot; ...
  </code></pre>
  <p>Can I change all the paths inside the build folder to match my BE, like</p>
  <pre><code>{&quot;version&quot;:3,&quot;sources&quot;:[&quot;mywebsite/web/static/js/main.500cb0d9.js&quot; ...
  </code></pre>
  <p>package.json:</p>
  <pre><code>{
    &quot;name&quot;: &quot;reactTest&quot;,
    &quot;version&quot;: &quot;0.1.0&quot;,
    &quot;private&quot;: true,
    &quot;dependencies&quot;: {
      &quot;jquery&quot;: &quot;^3.3.1&quot;,
      &quot;moment&quot;: &quot;^2.22.1&quot;,
      &quot;react&quot;: &quot;^16.4.1&quot;,
      &quot;react-datepicker&quot;: &quot;^1.5.0&quot;,
      &quot;react-dom&quot;: &quot;^16.4.1&quot;,
      &quot;react-month-picker&quot;: &quot;^1.3.7&quot;,
      &quot;react-scripts&quot;: &quot;1.1.4&quot;
    },
    &quot;scripts&quot;: {
      &quot;start&quot;: &quot;react-scripts start&quot;,
      &quot;build&quot;: &quot;react-scripts build&quot;,
      &quot;test&quot;: &quot;react-scripts test --env=jsdom&quot;,
      &quot;eject&quot;: &quot;react-scripts eject&quot;
    }
  }
  </code></pre>