Skip to content
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

Add .npmignore to reduce package size #1365

Open
forest1102 opened this issue Dec 16, 2024 · 0 comments
Open

Add .npmignore to reduce package size #1365

forest1102 opened this issue Dec 16, 2024 · 0 comments

Comments

@forest1102
Copy link

forest1102 commented Dec 16, 2024

Is your feature request related to a problem? Please describe.
I'm always frustrated when the npm package size is larger than necessary due to included files that aren't required for production.

Describe the solution you'd like
Adding a .npmignore files in each packages to exclude unnecessary files (e.g., image_snapshots, docs, configs) from the npm package to reduce its size. Especially, image files in __image_snapshots__ has unnecessarily big file size and long filename which can cause too long filename error when copying.

Describe alternatives you've considered
An alternative would be to manually specify files to include in the package.json, but using .npmignore is more flexible and easier to maintain.

Additional context
Reducing the package size will improve installation speed and reduce bandwidth usage for users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant