{"action":"created","issue":{"url":"https://api.github.com/repos/dlmanning/gulp-sass/issues/161","labels_url":"https://api.github.com/repos/dlmanning/gulp-sass/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/dlmanning/gulp-sass/issues/161/comments","events_url":"https://api.github.com/repos/dlmanning/gulp-sass/issues/161/events","html_url":"https://github.com/dlmanning/gulp-sass/issues/161","id":53335257,"number":161,"title":"Empty output file","user":{"login":"sirMackk","id":2191211,"avatar_url":"https://avatars.githubusercontent.com/u/2191211?v=3","gravatar_id":"","url":"https://api.github.com/users/sirMackk","html_url":"https://github.com/sirMackk","followers_url":"https://api.github.com/users/sirMackk/followers","following_url":"https://api.github.com/users/sirMackk/following{/other_user}","gists_url":"https://api.github.com/users/sirMackk/gists{/gist_id}","starred_url":"https://api.github.com/users/sirMackk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirMackk/subscriptions","organizations_url":"https://api.github.com/users/sirMackk/orgs","repos_url":"https://api.github.com/users/sirMackk/repos","events_url":"https://api.github.com/users/sirMackk/events{/privacy}","received_events_url":"https://api.github.com/users/sirMackk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-04T12:38:35Z","updated_at":"2015-01-04T22:36:41Z","closed_at":"2015-01-04T22:36:41Z","body":"Hi!\r\n\r\nI was having issues with gulp-sass outputting an empty file. I spent some time on resolving it, but figured out it wasn't a configuration issue on my end (or not entirely, not 100% sure on this). \r\n\r\nI poked around and found that `handleOutput` was receiving an associative array as its `output` parameter, which looked like this:\r\n\r\n    { css: '.main {\\n  background-color: #fff;\\n  color: #f30312; }\\n\\n.wat {\\n  color: #00f; }\\n',\r\n      map: {},\r\n      stats:\r\n       { entry: 'data',\r\n         start: 1420340205915,\r\n         includedFiles: [],\r\n         end: 1420340205919,\r\n        duration: 4 } }\r\n\r\nThen it used this array to create a new Buffer. I think the issue is that passing an array to Buffer might initialize an empty buffer since Buffer might expect a String (not a js person). I fixed this in my local project by suffixing `.css` to `output` so that the whole relevant line looks like ` file.contents = new Buffer(output.css);` which works for me.\r\n\r\nI'm using the simplest config possible, not passing any arguments, piping it straight to gulp.dest and my scss compiles using both the sass gem as well as node-sass. Not doing source maps so I feel this might be related to #81 . \r\n\r\nIf you think this is a real issue and not something weirdly specific to my setup, let me, I think I can punch out a PR. \r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/dlmanning/gulp-sass/issues/comments/68652750","html_url":"https://github.com/dlmanning/gulp-sass/issues/161#issuecomment-68652750","issue_url":"https://api.github.com/repos/dlmanning/gulp-sass/issues/161","id":68652750,"user":{"login":"dlmanning","id":2949092,"avatar_url":"https://avatars.githubusercontent.com/u/2949092?v=3","gravatar_id":"","url":"https://api.github.com/users/dlmanning","html_url":"https://github.com/dlmanning","followers_url":"https://api.github.com/users/dlmanning/followers","following_url":"https://api.github.com/users/dlmanning/following{/other_user}","gists_url":"https://api.github.com/users/dlmanning/gists{/gist_id}","starred_url":"https://api.github.com/users/dlmanning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlmanning/subscriptions","organizations_url":"https://api.github.com/users/dlmanning/orgs","repos_url":"https://api.github.com/users/dlmanning/repos","events_url":"https://api.github.com/users/dlmanning/events{/privacy}","received_events_url":"https://api.github.com/users/dlmanning/received_events","type":"User","site_admin":false},"created_at":"2015-01-04T22:36:41Z","updated_at":"2015-01-04T22:36:41Z","body":"@sirMackk Ah, that's likely the problem. There are a number of breaking changes in node-sass 2.0 that gulp-sass doesn't support yet. Will likely be getting a corresponding beta of gulp-sass out in the coming week. Closing this issue for now..."}}