{"action":"created","issue":{"url":"https://api.github.com/repos/srod/node-minify/issues/64","labels_url":"https://api.github.com/repos/srod/node-minify/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/srod/node-minify/issues/64/comments","events_url":"https://api.github.com/repos/srod/node-minify/issues/64/events","html_url":"https://github.com/srod/node-minify/issues/64","id":93702833,"number":64,"title":"Minification doesn't support synchronous execution","user":{"login":"diogobaeder","id":207168,"avatar_url":"https://avatars.githubusercontent.com/u/207168?v=3","gravatar_id":"","url":"https://api.github.com/users/diogobaeder","html_url":"https://github.com/diogobaeder","followers_url":"https://api.github.com/users/diogobaeder/followers","following_url":"https://api.github.com/users/diogobaeder/following{/other_user}","gists_url":"https://api.github.com/users/diogobaeder/gists{/gist_id}","starred_url":"https://api.github.com/users/diogobaeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diogobaeder/subscriptions","organizations_url":"https://api.github.com/users/diogobaeder/orgs","repos_url":"https://api.github.com/users/diogobaeder/repos","events_url":"https://api.github.com/users/diogobaeder/events{/privacy}","received_events_url":"https://api.github.com/users/diogobaeder/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-08T05:48:49Z","updated_at":"2015-07-08T15:37:33Z","closed_at":"2015-07-08T15:33:23Z","body":"Hi,\r\n\r\nI need to use node-minify in a project, but it only calls asynchronous execution of child processes to do the actual minification work. This is an issue for me, since in my code structure I need it to be done synchronously.\r\n\r\nIs it possible to support something like a `{sync: true}` option, defaulting to `false`, so that it's run synchronously when the client code requests it?"},"comment":{"url":"https://api.github.com/repos/srod/node-minify/issues/comments/119629041","html_url":"https://github.com/srod/node-minify/issues/64#issuecomment-119629041","issue_url":"https://api.github.com/repos/srod/node-minify/issues/64","id":119629041,"user":{"login":"srod","id":457674,"avatar_url":"https://avatars.githubusercontent.com/u/457674?v=3","gravatar_id":"","url":"https://api.github.com/users/srod","html_url":"https://github.com/srod","followers_url":"https://api.github.com/users/srod/followers","following_url":"https://api.github.com/users/srod/following{/other_user}","gists_url":"https://api.github.com/users/srod/gists{/gist_id}","starred_url":"https://api.github.com/users/srod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srod/subscriptions","organizations_url":"https://api.github.com/users/srod/orgs","repos_url":"https://api.github.com/users/srod/repos","events_url":"https://api.github.com/users/srod/events{/privacy}","received_events_url":"https://api.github.com/users/srod/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T15:37:33Z","updated_at":"2015-07-08T15:37:33Z","body":"Hi,\r\n\r\nI have published version 1.2.0, can you give it a try ?\r\nSo, you have to pass the sync: true option.\r\n\r\n```js\r\nnew compressor.minify({\r\n  type: 'yui-js',\r\n  publicFolder: 'public/js/',\r\n  fileIn: 'base.js',\r\n  fileOut: 'public/js-dist/base-min-yui-publicfolder.js',\r\n  sync: true,\r\n  callback: function(err, min) {\r\n    console.log('YUI JS with publicFolder option');\r\n    console.log(err);\r\n    //console.log(min);\r\n  }\r\n});\r\n```\r\n\r\nThanks !"}}