{"action":"created","issue":{"url":"https://api.github.com/repos/ElemeFE/cooking/issues/84","repository_url":"https://api.github.com/repos/ElemeFE/cooking","labels_url":"https://api.github.com/repos/ElemeFE/cooking/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/ElemeFE/cooking/issues/84/comments","events_url":"https://api.github.com/repos/ElemeFE/cooking/issues/84/events","html_url":"https://github.com/ElemeFE/cooking/issues/84","id":176599539,"number":84,"title":"cooking watch报错","user":{"login":"LiXunGuan","id":7980846,"avatar_url":"https://avatars.githubusercontent.com/u/7980846?v=3","gravatar_id":"","url":"https://api.github.com/users/LiXunGuan","html_url":"https://github.com/LiXunGuan","followers_url":"https://api.github.com/users/LiXunGuan/followers","following_url":"https://api.github.com/users/LiXunGuan/following{/other_user}","gists_url":"https://api.github.com/users/LiXunGuan/gists{/gist_id}","starred_url":"https://api.github.com/users/LiXunGuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiXunGuan/subscriptions","organizations_url":"https://api.github.com/users/LiXunGuan/orgs","repos_url":"https://api.github.com/users/LiXunGuan/repos","events_url":"https://api.github.com/users/LiXunGuan/events{/privacy}","received_events_url":"https://api.github.com/users/LiXunGuan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-13T10:01:29Z","updated_at":"2016-09-13T10:52:14Z","closed_at":null,"body":"cooking-cli是安装在全局的。然后执行watch就报错了\r\n```\r\nD:\\wwwroot\\cy-ui>cooking watch\r\n\r\n\r\n[cooking] - Failed to read the config.\r\n[cooking] - ReferenceError: modules is not defined\r\n    at Object.<anonymous> (D:\\wwwroot\\cy-ui\\cooking.conf.js:10:1)\r\n    at Module._compile (module.js:398:26)\r\n    at Object.Module._extensions..js (module.js:405:10)\r\n    at Module.load (module.js:344:32)\r\n    at Function.Module._load (module.js:301:12)\r\n    at Module.require (module.js:354:17)\r\n    at require (internal/module.js:12:17)\r\n    at module.exports (D:\\wwwroot\\cy-ui\\node_modules\\cooking\\util\\load-config.js\r\n:18:14)\r\n    at D:\\wwwroot\\cy-ui\\node_modules\\cooking\\bin\\cooking-watch:24:12\r\n    at Array.forEach (native)\r\n    at Object.<anonymous> (D:\\wwwroot\\cy-ui\\node_modules\\cooking\\bin\\cooking-wat\r\nch:23:16)\r\n    at Module._compile (module.js:398:26)\r\n    at Object.Module._extensions..js (module.js:405:10)\r\n    at Module.load (module.js:344:32)\r\n    at Function.Module._load (module.js:301:12)\r\n    at Function.Module.runMain (module.js:430:10)\r\n```"},"comment":{"url":"https://api.github.com/repos/ElemeFE/cooking/issues/comments/246645118","html_url":"https://github.com/ElemeFE/cooking/issues/84#issuecomment-246645118","issue_url":"https://api.github.com/repos/ElemeFE/cooking/issues/84","id":246645118,"user":{"login":"LiXunGuan","id":7980846,"avatar_url":"https://avatars.githubusercontent.com/u/7980846?v=3","gravatar_id":"","url":"https://api.github.com/users/LiXunGuan","html_url":"https://github.com/LiXunGuan","followers_url":"https://api.github.com/users/LiXunGuan/followers","following_url":"https://api.github.com/users/LiXunGuan/following{/other_user}","gists_url":"https://api.github.com/users/LiXunGuan/gists{/gist_id}","starred_url":"https://api.github.com/users/LiXunGuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiXunGuan/subscriptions","organizations_url":"https://api.github.com/users/LiXunGuan/orgs","repos_url":"https://api.github.com/users/LiXunGuan/repos","events_url":"https://api.github.com/users/LiXunGuan/events{/privacy}","received_events_url":"https://api.github.com/users/LiXunGuan/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T10:52:14Z","updated_at":"2016-09-13T10:52:14Z","body":"自己在根目录下新建``cooking.conf.js``配置如下\r\n``\r\nvar cooking = require('cooking');\r\n\r\ncooking.set({\r\n  entry: './src/main.js',\r\n  dist: './dist',\r\n  hash: true,\r\n  sourceMap: true\r\n})\r\n\r\nmodules.export = cooking.resolve();\r\n``\r\nmodules是从文档上复制进来的"}}
{"actor":{"display_login":"LiXunGuan"}}