createReactApp builds index.html to have the path to main.js be absolute, referencing the document root by starting the path with '/'
We deploy to a route called /damss on the domain dam-safety.github.io. Currently the way CRA builds our project, index.html looks at the base url, dam-safety.github.io/main.js for the main.js asset. We need it to look to dam-safety.github.io/damss/main.js.
I read in the comments in the CRA webpack config that we can set our homepage to '.' in packagon.json and the build script will then build relative paths
createReactApp builds index.html to have the path to main.js be absolute, referencing the document root by starting the path with '/'
We deploy to a route called /damss on the domain dam-safety.github.io. Currently the way CRA builds our project, index.html looks at the base url, dam-safety.github.io/main.js for the main.js asset. We need it to look to dam-safety.github.io/damss/main.js.
I read in the comments in the CRA webpack config that we can set our homepage to '.' in packagon.json and the build script will then build relative paths