如何设置sublime编译默认使用 'use_strict' 严格模式

{
  "cmd": ["node", "$file"],
  "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
  "selector": "source.js",
  "shell": true,
  "encoding": "utf-8",
  "windows":
    {
        "shell_cmd": "taskkill /F /IM node.exe & node --use_strict $file"
    },
    "linux":
    {
        "shell_cmd": "killall node; /usr/bin/env node --use_strict $file"
    },
    "osx":
    {
        "shell_cmd": "killall node; /usr/bin/env node --use_strict $file"
    }
}

 

posted @ 2017-06-06 14:33  $JackChen  阅读(833)  评论(0编辑  收藏  举报