diff --git a/docs/dev-guide/plugin-dev.md b/docs/dev-guide/plugin-dev.md index 037bf78f10..0f4d7efc9c 100644 --- a/docs/dev-guide/plugin-dev.md +++ b/docs/dev-guide/plugin-dev.md @@ -50,9 +50,9 @@ A generator should export a function which receives three arguments: 2. The generator options for this plugin. These options are resolved during the [prompt](#prompts) phase of project creation, or loaded from a saved preset in `~/.vuerc`. For example, if the saved `~/.vuerc` looks like this: -``` json +```json { - "presets" : { + "presets": { "foo": { "plugins": { "@vue/cli-plugin-foo": { "option": "bar" } @@ -94,7 +94,7 @@ module.exports = api => { In addition, you can inherit and replace parts of an existing template file (even from another package) using YAML front-matter: -``` ejs +```ejs --- extend: '@vue/cli-service/generator/template/src/App.vue' replace: !!js/regexp /