From 290d4c801f102147b3cf9898155f74f847b11943 Mon Sep 17 00:00:00 2001 From: Javier Date: Thu, 21 Feb 2019 16:50:41 +0100 Subject: [PATCH 1/2] docs: fix example changing main file --- docs/dev-guide/plugin-dev.md | 58 ++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/docs/dev-guide/plugin-dev.md b/docs/dev-guide/plugin-dev.md index 037bf78f10..4ae93c08d2 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 /