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.
For example at the moment it creates the path like this
<script type="text/javascript" src="/static/js/main.dab68f70.js">
where as I need
<script type="text/javascript" src="assets/static/js/main.dab68f70.js">
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.