如何在task.json中配置监视任务?

时间:2018-10-12 15:30:03

标签: visual-studio-code

我如何配置以下任务以观看而不是构建?

我对此很陌生,目前正在阅读https://code.visualstudio.com/docs/editor/tasks,该书并未明确说明如何在task.json中配置监视任务。再说一次,也许看任务根本不应该放在task.json中?

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Sass Compile",
            "type": "shell",
            "command": "node-sass popup.scss popup.css",
            "group": "build",
            "problemMatcher": [
                "$node-sass"
            ]
        },
        {
            "type": "typescript",
            "tsconfig": "tsconfig.json",
            "group": "build",
            "problemMatcher": [
                "$tsc"
            ]
        }
    ]
}

Visual Studio Code版本信息:

Version: 1.27.2
Commit: f46c4c469d6e6d8c46f268d1553c5dc4b475840f
Date: 2018-09-12T07:11:15.873Z
Electron: 2.0.7
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64

0 个答案:

没有答案