{"action":"created","issue":{"url":"https://api.github.com/repos/addyosmani/grunt-uncss/issues/151","labels_url":"https://api.github.com/repos/addyosmani/grunt-uncss/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/addyosmani/grunt-uncss/issues/151/comments","events_url":"https://api.github.com/repos/addyosmani/grunt-uncss/issues/151/events","html_url":"https://github.com/addyosmani/grunt-uncss/issues/151","id":53664252,"number":151,"title":"Process multiple .html files with one .css file","user":{"login":"ozasadnyy","id":2954281,"avatar_url":"https://avatars.githubusercontent.com/u/2954281?v=3","gravatar_id":"","url":"https://api.github.com/users/ozasadnyy","html_url":"https://github.com/ozasadnyy","followers_url":"https://api.github.com/users/ozasadnyy/followers","following_url":"https://api.github.com/users/ozasadnyy/following{/other_user}","gists_url":"https://api.github.com/users/ozasadnyy/gists{/gist_id}","starred_url":"https://api.github.com/users/ozasadnyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozasadnyy/subscriptions","organizations_url":"https://api.github.com/users/ozasadnyy/orgs","repos_url":"https://api.github.com/users/ozasadnyy/repos","events_url":"https://api.github.com/users/ozasadnyy/events{/privacy}","received_events_url":"https://api.github.com/users/ozasadnyy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/addyosmani/grunt-uncss/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-01-07T18:26:16Z","updated_at":"2015-01-26T10:19:39Z","closed_at":"2015-01-26T10:19:39Z","body":"I want to use uncss for multiple .html files of Jekyll project. \r\nMy project's structure is next:\r\n```\r\n--root\r\n   Gruntfile.js\r\n    -- .tmp\r\n        -- css\r\n           -- main.css\r\n    -- .jekyll\r\n        -- index.html\r\n        -- folder1\r\n            -- index2.html\r\n            -- index3.html\r\n            -- subfolder1\r\n                -- index4.html\r\n        -- folder2\r\n            -- index5.html\r\n        ...\r\n```\r\n\r\nCurrently, I **can** do it, but my task looks awful:\r\n```\r\nuncss: {\r\n            dist: {\r\n                options: {\r\n                    stylesheets: ['../../../.tmp/css/main.css'],\r\n                    report: 'min'\r\n                },\r\n                files: {\r\n                    '.tmp/css/main.css': ['.jekyll/**/*.html']\r\n                }\r\n            }\r\n        }\r\n```\r\n\r\nIt works because of `stylesheets: ['../../../.tmp/<%= yeoman.baseurl %>/css/main.css']`, but it will broke if I will have one more subfolder.\r\nAlso, it works very slowly with some errors:\r\n```\r\nRunning \"uncss:dist\" (uncss) task\r\nRequest() error evaluating createPage() call: Error: read ECONNRESET\r\nPoll Request error: Error: read ECONNRESET\r\nPoll Request error: Error: read ECONNRESET\r\nPoll Request error: Error: read ECONNRESET\r\nRequest() error evaluating createPage() call: Error: read ECONNRESET\r\nRequest() error evaluating createPage() call: Error: read ECONNRESET\r\nPoll Request error: Error: read ECONNRESET\r\nPoll Request error: Error: read ECONNRESET\r\nPoll Request error: Error: read ECONNRESET\r\nPoll Request error: Error: read ECONNRESET\r\nPoll Request error: Error: read ECONNRESET\r\nPoll Request error: Error: read ECONNRESET\r\nPoll Request error: Error: read ECONNRESET\r\nError parsing JSON from phantom: SyntaxError: Unexpected end of input\r\nData from phantom was:\r\nPoll Request error: Error: read ECONNRESET\r\nPoll Request error: Error: read ECONNRESET\r\nPoll Request error: Error: read ECONNRESET\r\nPoll Request error: Error: read ECONNRESET\r\nPoll Request error: Error: read ECONNRESET\r\nPoll Request error: Error: read ECONNRESET\r\nPoll Request error: Error: read ECONNRESET\r\nPoll Request error: Error: read ECONNRESET\r\nPoll Request error: Error: read ECONNRESET\r\n```\r\n\r\n**How can I specify** .css file with related path to Gruntfile.js?"},"comment":{"url":"https://api.github.com/repos/addyosmani/grunt-uncss/issues/comments/71439614","html_url":"https://github.com/addyosmani/grunt-uncss/issues/151#issuecomment-71439614","issue_url":"https://api.github.com/repos/addyosmani/grunt-uncss/issues/151","id":71439614,"user":{"login":"XhmikosR","id":349621,"avatar_url":"https://avatars.githubusercontent.com/u/349621?v=3","gravatar_id":"","url":"https://api.github.com/users/XhmikosR","html_url":"https://github.com/XhmikosR","followers_url":"https://api.github.com/users/XhmikosR/followers","following_url":"https://api.github.com/users/XhmikosR/following{/other_user}","gists_url":"https://api.github.com/users/XhmikosR/gists{/gist_id}","starred_url":"https://api.github.com/users/XhmikosR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XhmikosR/subscriptions","organizations_url":"https://api.github.com/users/XhmikosR/orgs","repos_url":"https://api.github.com/users/XhmikosR/repos","events_url":"https://api.github.com/users/XhmikosR/events{/privacy}","received_events_url":"https://api.github.com/users/XhmikosR/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T10:19:39Z","updated_at":"2015-01-26T10:19:39Z","body":"I didn't touch anything; whatever you had in your repo."}}