"build": "react-scripts build && cp -R ./build/* ../main/resources/public /s /y" did not for my Mac. it is not executed by yarn build command. please give a solution. thanks in advance.
CodePudding user response:
it solved with the followings:
"build": "react-scripts build/* && cp -R build /Users/arif/Desktop/javaProjects/ipl-springboot/src/main/resources/public/", .... but in the public folder it creates another folder named build. as I wanted to copy the whole files from build folder.
CodePudding user response:
it works for me, perfectly: "build": "react-scripts build/* && cp -R /Users/arif/Desktop/javaProjects/ipl-springboot/src/frontend/ipl-frontend/build/* /Users/arif/Desktop/javaProjects/ipl-springboot/src/main/resources/public/",