P粉4500792662023-08-27 16:35:03
I solved this problem by creating a bash file that runs the npm command, then moving the file to a public directory as needed. I run a command and it does everything I need easily with no extra work...
Filename: npm_run_build.bash Contents: #!/bin/bash npm run build mv ./public_html/build/manifest.json ./public/build/manifest.json
Then I just run the command
"bash npm_run_build.bash"
Replace hte command
npm run build
It does the build and then moves the files to the desired location so I can run the script without any extra work...
P粉6800875502023-08-27 11:19:24
I can't make my manfiest available in public_html/build, but I can leave all the compiled files there and move them to public/build and it works.