Skip to content

Is there a way to exclude files from the bundle in production? #9957

Discussion options

You must be logged in to vote

Use code splitting https://create-react-app.dev/docs/code-splitting to keep the part you don't want to load in production, in it's own chuck that only loads when the conditional allows it to.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by lukesmurray
Comment options

You must be logged in to vote
5 replies
@pikilon
Comment options

@florianmatz
Comment options

@tabareptr
Comment options

@pikilon
Comment options

@dwjohnston
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants