for example, there is a package An in dependencies, but it never works. Will A be packaged into vendor when build?
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
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--
Previous: Most of the code duplicates in these two mouse events. How can we merge the duplicate code?