VuePress を Visual Studio Code の規定のビルドタスクで起動する

タスクを追加する

タスクの type に yarn がないので shell を指定する。

.vscode/tasks.json




 
 
 
 
 



{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "yarn docs:dev",
      "type": "shell",
      "command": "yarn docs:dev"
    }
  ]
}
1
2
3
4
5
6
7
8
9
10

規定のビルドタスクにする

Shift+Cmd+B で起動できるようにする。

.vscode/tasks.json








 
 
 
 




{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "yarn docs:dev",
      "type": "shell",
      "command": "yarn docs:dev",
      "group": {
        "kind": "build",
        "isDefault": true
      }
    }
  ]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Last Updated: 2018/6/26 21:52:27