I am new to Vue.js and it looks like Vue CLI is the way to go for rapid development. So I installed it and created an app which is running nicely.
I added the Vuetify.js plugin with vue add vuetify
and will also add the vuex
and vue-router
plugins. But I was wondering about:
Thanks in advance!
Under "Dependencies" (second tab on the left of vue ui) you'll find all plugins listed. And on the right of each plugin there is a little trash icon, which removes the respective plugin.
If a plugin is already installed, you can skip the installation and only invoke its generator with the vue invoke command. The command takes the same arguments as vue add . If for some reason your plugins are listed in a package. json file other than the one located in your project, you can set the vuePlugins.
You can verify that it is properly installed by simply running vue , which should present you with a help message listing all available commands.
vue inspect --plugins
Q1. Is there a command to list all available Vue CLI plugins?
You can use vue ui
command to open vue ui in browser. There import your project, than click on your added project. On left hand side you'll see "Plugins" menu (along with other useful menus). Here you can see list of all the plugins, add new plugin, update existing plugins.
Another way is to check the package.json file. Check for any dependancy with vue-cli-plugin-* or @vue/cli-plugin-*. These are your vue plugins, because all vue cli plugin must start with cli-plugin.
Q2. How do I update a plugin such as Vuetify.js?
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. I've searched but couldn't find any suitable command for this. So if you want to use the command prompt, npm update
will do the trick.
Q3. How do I remove a plugin from my app?
Again there is no vue command to do this. We have to fall back to npm and use npm uninstall
instead. This will remove the plugin from your project, however vue cli plugins can modify your project. These changes you have to remove manually.
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