How to build a React app (containing SVG files) inside a SilverStripe project so SS4 folder conventions are maintained?
问题 I have been using npm run build to create build files for my React project which automatically produces three folders in the build directory inside the React project static/js , static/css and static/media (containing the SVG files). The first two folders static/js and static/css can be dealt with by using the SilverStripe Requirements class on the init method of the ReactPageController (the PageController for the SilverStripe layout with the nested React app), adding the paths to the