{
    "version": "2.0.0",
    "tasks": [
        //gulp:使用gulp来执行default任务
        {
            "label": "gulp",
            "type": "gulp",
            "task": "default",
            "problemMatcher": []
        },
        //lodash:使用lodash-cli来构建自定义lodash库文件。使用前请使用“npm i -g lodash-cli”命令安装lodash-cli工具，使用方法请见：https://lodash.com/custom-builds
        {
            "label": "lodash",
            "type": "shell",
            "command": "lodash",
            "args": [
                //include参数指定需要使用到的lodash方法名字
                "include=groupBy,uniq,chunk,isArray,isObject,fill,random,clamp,intersection,flatten,countBy,difference,xor",
                //-o指定编译出的文件名字及路径
                "-o",
                "bin/libs/lodash.js",
                //-d指定不需要生成.min压缩文件
                "-d",
                //导出方式改为挂载到root上，注意这里的root不一定是window，而是代码执行时的this
                "exports=global"
            ],
            "presentation": {
                "reveal": "always"
            },
            "problemMatcher": []
        }
    ]
}