Previously, it was thought that dependencies were used in production environment and devdependencies were used in development environment to distinguish them.
However, when using vuejs as a project,
Why is vue installed with –save installed in dependencies
Vuex uses –save-dev in devdependencies
It is said that dependencies are used in the production environment, but vuex is also used in the production environment? ?
What you always thought was right,
npm install --production
When using this sentence, devdependencies will be ignored. this is the difference between the two. however, many people are wrong when using non-node projects.
More npm tips:https://uedsky.com/2016-09/el …