DEV Community

Discussion on: Reducing npm package size by 83%

 
helderberto profile image
Helder Burato Berto

Has an article called "For the love of god, don’t use .npmignore" by Jeff Dickey with awesome content explaining why you could use "files" in package.json instead of .npmignore.

Thread Thread
 
nombrekeff profile image
Keff

Ohh, thanks, I will check it out :)

Thread Thread
 
nombrekeff profile image
Keff

I've checked the post out, there are definitely some risks about using .npmignore, like unexpectedly upload credentials or critical information, but the risk is tolerable to the project I was optimizing, I will be taking this into account in the future though!