小编Flo*_*ehn的帖子

尝试使用不在根文件夹中的VSCode运行gulp任务

这是我的task.json

// A task runner configuration for gulp. Gulp provides a less task
// which compiles less to css. 
{
    "version": "0.1.0",
    "command": "gulp",
    "isShellCommand": true,
    "tasks": [
        {
            "taskName": "sfdcBuild",
            // Make this the default build command.
            "isBuildCommand": true,
            // Show the output window only if unrecognized errors occur.
            "showOutput": "always",
            // Use the standard less compilation problem matcher.
            "problemMatcher": "$lessCompile"
        }
    ]
}
Run Code Online (Sandbox Code Playgroud)

不幸的是我的gulp安装(本地安装)不在root下但在另一个文件夹中:

root/js/
Run Code Online (Sandbox Code Playgroud)

那么如何定义我想从其他文件夹中运行这个gulp命令?

PS:将task.json移动到子文件夹中也没有用.

gulp visual-studio-code

23
推荐指数
1
解决办法
6003
查看次数

标签 统计

gulp ×1

visual-studio-code ×1