Will the vue-cli project, which is not used in dependencies, be typed in when packing?

for example, there is a package An in dependencies, but it never works. Will A be packaged into vendor when build?


No, when packing, only pack the js of your import that has recursively import


what I understand here is that there is no difference in build. As @ Xia Bing said, only the part of import will be packaged. But why is there a difference between these two parameters?

dependencies and devDependencies , you can distinguish

by the parameter-- production.
npm install --production

in this case, only the resources in install dependencies will be saved, thus saving Jenkins's work.

on this basis, you can try to make such a strategy: dependencies only put and publish related packages, other packages used in development are placed in devDependencies . My practical experience in this area--

  1. some packages may not be supported in a Jenkins environment, such as ruby support is required for Sass.
  2. can do some compilation work in advance to reduce the release time required for Jenkins.
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-1e45a76-44b51.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-1e45a76-44b51.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?