-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: How to change output folder for build files. #3824
Comments
In your
You can add another script called
You could also run a custom script that does more.
Hope this helps! |
i don't think this is a valid solution because it assumes that the True, a proper separation of concerns here would be the right move, making each their own codebase and repository, but would definitely like to see an option to set a build-dir option in react scripts |
I found a way to get it to work. I was facing the same issue of moving my react build to ../public folder, since I am writing a test application and using node back end. You can run the Hope that helps |
@sairathb I wouldn't eject just for this, losing the ability to update. |
I absolutely agree with you @pasichnyk , I have the same issues I always ejecting my react.js projects for changing the build path or adding one or two plugins to my webpack and I lose the ability to update my scripts. tanks you react team for hooks :D |
This is folder's structure of my project.
So I launch
npm run build
from project_frontend and I need to put build files into project_backend. Also I don't need to put into there files like "manifest.json", "asset-manifest.json".Thanks.
The text was updated successfully, but these errors were encountered: