{"action":"opened","issue":{"url":"https://api.github.com/repos/steelbrain/ucompiler-plugin-uglify/issues/3","repository_url":"https://api.github.com/repos/steelbrain/ucompiler-plugin-uglify","labels_url":"https://api.github.com/repos/steelbrain/ucompiler-plugin-uglify/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/steelbrain/ucompiler-plugin-uglify/issues/3/comments","events_url":"https://api.github.com/repos/steelbrain/ucompiler-plugin-uglify/issues/3/events","html_url":"https://github.com/steelbrain/ucompiler-plugin-uglify/issues/3","id":173655918,"number":3,"title":"Usage? Does not seem to work.","user":{"login":"beckend","id":6056334,"avatar_url":"https://avatars.githubusercontent.com/u/6056334?v=3","gravatar_id":"","url":"https://api.github.com/users/beckend","html_url":"https://github.com/beckend","followers_url":"https://api.github.com/users/beckend/followers","following_url":"https://api.github.com/users/beckend/following{/other_user}","gists_url":"https://api.github.com/users/beckend/gists{/gist_id}","starred_url":"https://api.github.com/users/beckend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beckend/subscriptions","organizations_url":"https://api.github.com/users/beckend/orgs","repos_url":"https://api.github.com/users/beckend/repos","events_url":"https://api.github.com/users/beckend/events{/privacy}","received_events_url":"https://api.github.com/users/beckend/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-28T16:53:16Z","updated_at":"2016-08-28T16:53:16Z","closed_at":null,"body":"Added to plugins array along with `babel`.\r\n```javascript\r\nTypeError: Cannot read property 'config' of undefined\r\n    at Object.process (/Users/linken/github/linter-tslint2/node_modules/ucompiler-plugin-uglify/lib/main.js:20:21)\r\n```\r\n\r\nFull `.ucompiler`:\r\n```json\r\n{\r\n  \"defaultRule\": \"compile-src\",\r\n  \"rules\": [\r\n    {\r\n      \"name\": \"compile-src\",\r\n      \"plugins\": [\"babel\", \"uglify\"],\r\n      \"babel\": {\r\n        \"presets\": [\"es2015\", \"stage-0\"]\r\n      },\r\n      \"uglify\": {\r\n        \"compress\": {\r\n          \"warnings\": false,\r\n          \"screw_ie8\": true,\r\n          \"sequences\": true,\r\n          \"dead_code\": true,\r\n          \"drop_debugger\": true,\r\n          \"comparisons\": true,\r\n          \"conditionals\": true,\r\n          \"evaluate\": true,\r\n          \"booleans\": true,\r\n          \"loops\": true,\r\n          \"unused\": true,\r\n          \"hoist_funs\": true,\r\n          \"if_return\": true,\r\n          \"join_vars\": true,\r\n          \"cascade\": true,\r\n          \"drop_console\": true\r\n        },\r\n        \"output\": {\r\n          \"comments\": false\r\n        }\r\n      },\r\n      \"include\": [\r\n        {\r\n          \"directory\": \"src\",\r\n          \"extensions\": [\"js\"]\r\n        }\r\n      ],\r\n      \"outputPath\": \"lib/{relativePath:4}\"\r\n    }\r\n  ]\r\n}\r\n\r\n```"}}
{"actor":{"display_login":"beckend"}}