Can the external plug-ins used in general vue projects be installed in the development environment?

ask for advice, can the external plug-ins used in general vue projects be installed in the development environment?
such as element-ui, axios, vuex, babel-polyfill, etc., is it unnecessary to publish to the production environment, and finally the packaged files can run normally? If you choose to publish to a production environment when installing these plug-ins, will writing to dependencies, eventually have an impact on the operation of the page?

Jun.02,2021

1. If you package locally, the server does not need to install
2. If you package on the server, you need to install it, which has no effect on your page.
your packaged html+js is static, and it doesn't matter whether you have dependencies or not.


it seems that your packaging is local, and the packaged files have nothing to do with these dependencies. The production environment only needs these generated files. Other dependent libraries that do not require


development environment are packaged into vendor.js when packaged. The more libraries you rely on, the larger the file will be, and you can use webpack's configuration to alleviate this problem. Therefore, the development environment can be installed

Menu