Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jefozabuss
11 months ago
|
parent
|
context
|
favorite
| on:
My failed attempt to shrink all NPM packages by 5%
I just installed a project with pnpm about 120 packages mostly react/webpack/eslint/redux related
with prod env: 700MB
without prod env: 900MB
sadly the bloat cannot be avoided that well :/
jeffhuys
11 months ago
[–]
pnpm stores them in a central place and symlinks them. You’ll see the benefits when you have multiple projects with a lot of the same packages.
syncsynchalt
11 months ago
|
parent
[–]
You'll also see the benefit when `rm -rf`ing a `node_modules` and re-installing, as pnpm still has a local copy that it can re-link after validating its integrity.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
with prod env: 700MB
without prod env: 900MB
sadly the bloat cannot be avoided that well :/