Developers confession board

Safe place where developers can confess their sins, fails and funny moments

Follow developer confession @confessmedev or me @DomagojFranc

10

I'm still not 100% sure when to --save vs. --save-dev vs. just npm install -g packages

@

It doesn't matter if you're using a modern build tool. It treeshakes for production build

0

- By Anonymous - 7 months ago

Dev for everything you need to build/lint/transpile/etc but not in production. E.g. Babel and Webpack stuff is typically only needed for development, not in the finished production code.

0

- By anonymous - 8 months ago

For me it looks like it doesn't make a difference, everything to --save then

-2

- By anonymous - 8 months ago