Is there a way to remove plugins and its configuration with vue-cli3 in an existing project? For example I want to replace unit test plugin Mocha with Jest. I know how to add and invoke a new plugin but I cannot find how to remove one. Is it possible with vue-cli or do I need to do it manually?
Presets saved during vue create are stored in a configuration file in your user home directory ( ~/. vuerc ). You can directly edit this file to tweak / add / delete the saved presets.
In the vue ui, from plugins menu you can update your plugins. If there is a newer version of any plugin, an update icon will appear on the right hand side of that plugin. Just click it and it will take care rest of the update.
Vue CLI uses a plugin-based architecture. If you inspect a newly created project's package. json , you will find dependencies that start with @vue/cli-plugin- . Plugins can modify the internal webpack configuration and inject commands to vue-cli-service .
I've asked about this (How does one uninstall a plugin? #2540) and it appears the current official advice is to issue an npm uninstall X
.
I think you can just go to your package.json and remove the entry for the plugin/package,
delete the directory of your node_modules,
and then run.
npm install
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With