How to tell the difference between installing third-party libraries in production dependencies and developing dependencies

I found a phenomenon in the development project. In vue projects, the third-party libraries of plug-ins are usually installed in production dependencies, but most of them in react are installed in development dependencies. How to tell which one is installed when npm is installed? Is it because of the different webpack configuration? What are the advantages and disadvantages? (ps: is a rookie)


-D installs only the modules needed for development
-S is eventually packaged into a production environment


this is what you decided when you installed the package

npm install package-name -D // 
npm install package-name --save-dev // 

npm install package-name -S // "" 
npm install package-name --save // "" 
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bca0bc-309ea.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bca0bc-309ea.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?