title: Add path when webpack creates static asset files react, create react app
body: <p>I have a react application, which I built with create react app, when I run build it generates the static assets I need and then the index.html file. I am running this on a Ratpack server with gradle. I then use gradle to move these files to my Ratpack directory so I can run it with the Ratpack server. When I move the files I need to add /assets/ onto the url for the JS and CSS file.</p>
  
  <p>For example at the moment it creates the path like this</p>
  
  <pre><code>&lt;script type="text/javascript" src="/static/js/main.dab68f70.js"&gt;
  </code></pre>
  
  <p>where as I need</p>
  
  <pre><code>&lt;script type="text/javascript" src="assets/static/js/main.dab68f70.js"&gt;
  </code></pre>
  
  <p>Is it possible to somehow automate this as each time I run my application the files in my ratpack assets are overwritten by the new files.</p>