{"action":"closed","issue":{"url":"https://api.github.com/repos/addyosmani/critical/issues/89","labels_url":"https://api.github.com/repos/addyosmani/critical/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/addyosmani/critical/issues/89/comments","events_url":"https://api.github.com/repos/addyosmani/critical/issues/89/events","html_url":"https://github.com/addyosmani/critical/issues/89","id":92338695,"number":89,"title":"inline: true generates CSS, not HTML","user":{"login":"raphaelgoetter","id":491029,"avatar_url":"https://avatars.githubusercontent.com/u/491029?v=3","gravatar_id":"","url":"https://api.github.com/users/raphaelgoetter","html_url":"https://github.com/raphaelgoetter","followers_url":"https://api.github.com/users/raphaelgoetter/followers","following_url":"https://api.github.com/users/raphaelgoetter/following{/other_user}","gists_url":"https://api.github.com/users/raphaelgoetter/gists{/gist_id}","starred_url":"https://api.github.com/users/raphaelgoetter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphaelgoetter/subscriptions","organizations_url":"https://api.github.com/users/raphaelgoetter/orgs","repos_url":"https://api.github.com/users/raphaelgoetter/repos","events_url":"https://api.github.com/users/raphaelgoetter/events{/privacy}","received_events_url":"https://api.github.com/users/raphaelgoetter/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-01T10:14:59Z","updated_at":"2015-07-10T13:11:09Z","closed_at":"2015-07-10T13:11:09Z","body":"Hello,\r\n\r\nI'm using critical with Gulp : \r\n\r\n```javascript\r\n\r\n// Requires\r\nvar gulp = require('gulp');\r\n\r\n// Include plugins\r\nvar critical = require('critical');\r\n\r\n// Generate & Inline Critical-path CSS\r\ngulp.task('critical', function() {\r\n\tcritical.generate({\r\n\t\tbase: './',\r\n\t\tinline: true,\r\n\t\tsrc: 'index.html',\r\n\t\tdest: 'index-critical.html',\r\n\t\twidth: 320,\r\n\t\theight: 480,\r\n\t\tminify: true,\r\n\t\t//extract: true\r\n\t});\r\n});\r\n\r\n````\r\n\r\nWhen task is complete, the generates `index-critical.html` will be (whole file)  : \r\n\r\n```html\r\nbody,h1{height:400px}body{display:block;order:1;background:beige;font-size:2em}h1{background:#6b8e23}\r\n```\r\n\r\nThe critical CSS is good, but `inline: true` or `inline: false` generate the same result : CSS instead of HTML.\r\n\r\nWhere's the problem ?"}}