feat: package.json: vuePlugins.resolveFrom option, closes #1815

This commit is contained in:
Guillaume Chau
2018-07-13 17:04:11 +02:00
parent ab642403e4
commit d212dcd63e
3 changed files with 27 additions and 5 deletions
+14
View File
@@ -61,6 +61,20 @@ vue add vuex
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`.
::: tip
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.resolveFrom` option in the project `package.json` with the path to the folder containing the other `package.json` file.
For example, if you have a `.config/package.json` file:
```json
{
"vuePlugins": {
"resolveFrom": ".config"
}
}
```
:::
## Presets
A Vue CLI preset is a JSON object that contains pre-defined options and plugins for creating a new project so that the user don't have to go through the prompts to select them.