这是我的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移动到子文件夹中也没有用.