Skip to content

Instantly share code, notes, and snippets.

@wildfrontend
Last active September 11, 2020 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wildfrontend/9c6c05bd77f052d42d6f161e6fe0a08a to your computer and use it in GitHub Desktop.
Save wildfrontend/9c6c05bd77f052d42d6f161e6fe0a08a to your computer and use it in GitHub Desktop.
why we dont need to use `npm install --save-dev`

As of NPM 5, saving is done by default

--save-dev is only needed if we’re building a node app;

since we output minified JS for production via npm run build, everything is a dev dependency,

so it doesn’t actually matter in practice whether modules are added to dependencies or devDependencies in package.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment