Skip to content

Why does bundle include source files and other non-runtime dependent files in the project? #98

Answered by ojkelly
fourpastmidnight asked this question in Q&A
Discussion options

You must be logged in to vote

We recently adding this feature 🚀 in #112

You can now set files to be ignored when bundling.

Add a .bundleignore file with the same format as .gitignore next to the package.json you are bundling.

Optionally put one next to your root package.json to apply to all bundles.

You can pass --ignore-file to specify a different ignore file.

Or decide at bundle time what to ignore by passing --exclude along with the file path to ignore.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@ojkelly
Comment options

@fourpastmidnight
Comment options

@ojkelly
Comment options

@ojkelly
Comment options

@ojkelly
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ojkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #95 on August 21, 2021 12:59.