My file structure would look something like:
./client
.react
./server
.express
.express and .react are just shorthand for all of my files in these folders. So I have separate node_modules folders for each of these directories.
CodePudding user response:
You need to use npm run build
to build the react app
CodePudding user response:
I wouldn't do it with npm itself. Might be handy to create a make file in the root, running your required build steps.
Check this: https://opensource.com/article/18/8/what-how-makefile#:~:text=The make utility requires a,be installed using make install .