-
-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Exclude some paths while building for production #2804
Comments
You can do this manually, e.g.
But I would say if something isn’t public, it shouldn’t go into the |
@gaearon Thanks Dan, but where should I keep this data folder in order to have this on root during development. I mean |
Yes, in this case the first approach I suggested (doing it manually) will work fine. |
This is an older thread, however, an exception to this rule
is the .svn folder for svn repositories. (Please don't yell at me for using svn over git) |
I came across this requirement where I have to exclude some folders from
public
directory in production build (npm run build
).Is there any option to exclude some paths say
build: "react-scripts build --exclude=public/data",
Or else any other way around to achieve this ?
Thank you
The text was updated successfully, but these errors were encountered: