Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove plugins with vue-cli3

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?

like image 492
sven Avatar asked May 03 '18 12:05

sven


People also ask

How do you delete a vue preset?

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.

How do you update vue plugins?

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.

What is vue CLI plugin?

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 .


2 Answers

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.

like image 53
nicodemus13 Avatar answered Sep 21 '22 06:09

nicodemus13


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
like image 27
Alexandre Canijo Avatar answered Sep 21 '22 06:09

Alexandre Canijo