DEV Community

Discussion on: Reducing npm package size by 83%

Collapse
 
aminnairi profile image
Amin

.npmignore act as a blacklist and files act as a whitelist. I guess i'ts a matter of preferences but I would rather be lazy and only define the files that I want to publish, and ignore all the others I didn't mention by using the `files property intsead of blacklisting all others files that should not be published to NPM. Again, a matter of preferences IMO.

Thread Thread
 
nombrekeff profile image
Keff

Ok, thanks! Yup I guess it's a matter of preferences.

I would also rather define what is needed! I may change this then :)