{"action":"created","issue":{"url":"https://api.github.com/repos/geowarin/friendly-errors-webpack-plugin/issues/51","repository_url":"https://api.github.com/repos/geowarin/friendly-errors-webpack-plugin","labels_url":"https://api.github.com/repos/geowarin/friendly-errors-webpack-plugin/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/geowarin/friendly-errors-webpack-plugin/issues/51/comments","events_url":"https://api.github.com/repos/geowarin/friendly-errors-webpack-plugin/issues/51/events","html_url":"https://github.com/geowarin/friendly-errors-webpack-plugin/pull/51","id":231757288,"number":51,"title":"Add `Last compile` and `Took` to the output","user":{"login":"flashios09","id":1313482,"avatar_url":"https://avatars1.githubusercontent.com/u/1313482?v=3","gravatar_id":"","url":"https://api.github.com/users/flashios09","html_url":"https://github.com/flashios09","followers_url":"https://api.github.com/users/flashios09/followers","following_url":"https://api.github.com/users/flashios09/following{/other_user}","gists_url":"https://api.github.com/users/flashios09/gists{/gist_id}","starred_url":"https://api.github.com/users/flashios09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flashios09/subscriptions","organizations_url":"https://api.github.com/users/flashios09/orgs","repos_url":"https://api.github.com/users/flashios09/repos","events_url":"https://api.github.com/users/flashios09/events{/privacy}","received_events_url":"https://api.github.com/users/flashios09/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-26T23:45:00Z","updated_at":"2017-05-28T01:48:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/geowarin/friendly-errors-webpack-plugin/pulls/51","html_url":"https://github.com/geowarin/friendly-errors-webpack-plugin/pull/51","diff_url":"https://github.com/geowarin/friendly-errors-webpack-plugin/pull/51.diff","patch_url":"https://github.com/geowarin/friendly-errors-webpack-plugin/pull/51.patch"},"body":"Hi @geowarin,\r\n\r\nI added an option for dateString, took, displayLastCompile and displayTook:\r\n```javascript\r\nconst defaultOutputOptions = {\r\n  dateString: {\r\n    color: 'blue',\r\n  },\r\n  took: {\r\n    // can be \"ms\" or \"s\"\r\n    on: 'ms',\r\n    // greater than 5000 ms, it will be displayed on red\r\n    // (!) if took.on === 's' then took.red must be on seconds too\r\n    red: 5000,\r\n  },\r\n  displayLastCompile: true,\r\n  displayTook: true,\r\n};\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/geowarin/friendly-errors-webpack-plugin/issues/comments/304487500","html_url":"https://github.com/geowarin/friendly-errors-webpack-plugin/pull/51#issuecomment-304487500","issue_url":"https://api.github.com/repos/geowarin/friendly-errors-webpack-plugin/issues/51","id":304487500,"user":{"login":"flashios09","id":1313482,"avatar_url":"https://avatars1.githubusercontent.com/u/1313482?v=3","gravatar_id":"","url":"https://api.github.com/users/flashios09","html_url":"https://github.com/flashios09","followers_url":"https://api.github.com/users/flashios09/followers","following_url":"https://api.github.com/users/flashios09/following{/other_user}","gists_url":"https://api.github.com/users/flashios09/gists{/gist_id}","starred_url":"https://api.github.com/users/flashios09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flashios09/subscriptions","organizations_url":"https://api.github.com/users/flashios09/orgs","repos_url":"https://api.github.com/users/flashios09/repos","events_url":"https://api.github.com/users/flashios09/events{/privacy}","received_events_url":"https://api.github.com/users/flashios09/received_events","type":"User","site_admin":false},"created_at":"2017-05-28T01:48:30Z","updated_at":"2017-05-28T01:48:30Z","body":"Screenshot with default options:\r\n```javascript\r\nnew FriendlyErrorsPlugin()\r\n```\r\n![image](https://cloud.githubusercontent.com/assets/1313482/26525465/c85519ca-434f-11e7-90f7-ba8852a49c56.png)\r\n\r\n\r\nScreenshot with custom options:\r\n```javascript\r\nnew FriendlyErrorsPlugin({\r\n    output: {\r\n        took: {on: 's', red: 5},\r\n    }\r\n})\r\n```\r\n![image](https://cloud.githubusercontent.com/assets/1313482/26525456/81df600e-434f-11e7-8d81-07c2170f4cce.png)\r\n\r\nScreenshot for a `took < output.took.red`(default to 5000ms):\r\n![image](https://cloud.githubusercontent.com/assets/1313482/26525479/092a8458-4350-11e7-9719-71102fa93a59.png)\r\n"}}
{"actor":{"display_login":"flashios09"}}