{"action":"created","issue":{"url":"https://api.github.com/repos/addyosmani/grunt-uncss/issues/78","labels_url":"https://api.github.com/repos/addyosmani/grunt-uncss/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/addyosmani/grunt-uncss/issues/78/comments","events_url":"https://api.github.com/repos/addyosmani/grunt-uncss/issues/78/events","html_url":"https://github.com/addyosmani/grunt-uncss/issues/78","id":30131549,"number":78,"title":"Can’t make the task work without defining report option","user":{"login":"LeBenLeBen","id":793344,"avatar_url":"https://avatars.githubusercontent.com/u/793344?v=3","gravatar_id":"","url":"https://api.github.com/users/LeBenLeBen","html_url":"https://github.com/LeBenLeBen","followers_url":"https://api.github.com/users/LeBenLeBen/followers","following_url":"https://api.github.com/users/LeBenLeBen/following{/other_user}","gists_url":"https://api.github.com/users/LeBenLeBen/gists{/gist_id}","starred_url":"https://api.github.com/users/LeBenLeBen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeBenLeBen/subscriptions","organizations_url":"https://api.github.com/users/LeBenLeBen/orgs","repos_url":"https://api.github.com/users/LeBenLeBen/repos","events_url":"https://api.github.com/users/LeBenLeBen/events{/privacy}","received_events_url":"https://api.github.com/users/LeBenLeBen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-03-25T15:08:10Z","updated_at":"2015-02-12T10:58:22Z","closed_at":"2014-03-28T11:35:42Z","body":"If I don’t define the \"report\" option, the task fail. Am I doing something wrong? Using version 0.3.0\r\n\r\n```\r\nuncss: {\r\n    dist: {\r\n        files: {\r\n            'stylesheets/tidy.css': ['index.html']\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n```\r\nTypeError: Cannot read property 'original' of undefined\r\n    at /node_modules/grunt-uncss/tasks/uncss.js:48:98\r\n    at /node_modules/grunt-uncss/node_modules/uncss/lib/uncss.js:224:20\r\n    at /node_modules/grunt-uncss/node_modules/uncss/lib/uncss.js:170:16\r\n    at /node_modules/grunt-uncss/node_modules/uncss/lib/lib.js:272:20\r\n    at /node_modules/grunt-uncss/node_modules/uncss/node_modules/async/lib/async.js:142:25\r\n    at /node_modules/grunt-uncss/node_modules/uncss/lib/lib.js:253:32\r\n    at filterUnusedSelectors (/node_modules/grunt-uncss/node_modules/uncss/lib/lib.js:151:12)\r\n    at async.eachSeries.callback.stylesheet.rules (/node_modules/grunt-uncss/node_modules/uncss/lib/lib.js:246:24)\r\n    at iterate (/node_modules/grunt-uncss/node_modules/uncss/node_modules/async/lib/async.js:134:13)\r\n    at /node_modules/grunt-uncss/node_modules/uncss/node_modules/async/lib/async.js:145:25\r\n```\r\n\r\n```\r\nuncss: {\r\n    dist: {\r\n        files: {\r\n            'stylesheets/tidy.css': ['index.html']\r\n        }\r\n    },\r\n    options: {\r\n        report: 'min'\r\n    }\r\n}\r\n```\r\n\r\n```\r\nFile stylesheets/tidy.css created: 9.81 kB → 597 B\r\n\r\nDone, without errors.\r\n```"},"comment":{"url":"https://api.github.com/repos/addyosmani/grunt-uncss/issues/comments/74052742","html_url":"https://github.com/addyosmani/grunt-uncss/issues/78#issuecomment-74052742","issue_url":"https://api.github.com/repos/addyosmani/grunt-uncss/issues/78","id":74052742,"user":{"login":"karol-f","id":893082,"avatar_url":"https://avatars.githubusercontent.com/u/893082?v=3","gravatar_id":"","url":"https://api.github.com/users/karol-f","html_url":"https://github.com/karol-f","followers_url":"https://api.github.com/users/karol-f/followers","following_url":"https://api.github.com/users/karol-f/following{/other_user}","gists_url":"https://api.github.com/users/karol-f/gists{/gist_id}","starred_url":"https://api.github.com/users/karol-f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karol-f/subscriptions","organizations_url":"https://api.github.com/users/karol-f/orgs","repos_url":"https://api.github.com/users/karol-f/repos","events_url":"https://api.github.com/users/karol-f/events{/privacy}","received_events_url":"https://api.github.com/users/karol-f/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T10:58:22Z","updated_at":"2015-02-12T10:58:22Z","body":"@XhmikosR Sure, here you are:\r\nUNCSS tasks definition\r\n```\r\noptions: {\r\n        uncssrc: '.uncssrc'\r\n    },\r\n    dist: {\r\n        files: {\r\n            'output/style.min.css': ['web/cont/**/*.html']\r\n        }\r\n    }\r\n```\r\n\r\nNot working with this .uncssrc\r\n```\r\n{\r\n    \"htmlroot\": \"web/cont\",\r\n    \"ignore\": [\r\n        \"/.somerule/\",\r\n    ]\r\n}\r\n```\r\n\r\nWorjking with this .uncssrc (added  \"report\": \"min\")\r\n```\r\n{\r\n    \"htmlroot\": \"web/cont\",\r\n    \"report\": \"min\",\r\n    \"ignore\": [\r\n        \"/.somerule/\",\r\n    ]\r\n}\r\n```\r\n\r\nIf you need something else please let me know. Regards."}}