{"action":"opened","issue":{"url":"https://api.github.com/repos/babel/minify/issues/673","repository_url":"https://api.github.com/repos/babel/minify","labels_url":"https://api.github.com/repos/babel/minify/issues/673/labels{/name}","comments_url":"https://api.github.com/repos/babel/minify/issues/673/comments","events_url":"https://api.github.com/repos/babel/minify/issues/673/events","html_url":"https://github.com/babel/minify/issues/673","id":250872109,"number":673,"title":"CLI: Handling comment-only files","user":{"login":"probins","id":283514,"avatar_url":"https://avatars3.githubusercontent.com/u/283514?v=4","gravatar_id":"","url":"https://api.github.com/users/probins","html_url":"https://github.com/probins","followers_url":"https://api.github.com/users/probins/followers","following_url":"https://api.github.com/users/probins/following{/other_user}","gists_url":"https://api.github.com/users/probins/gists{/gist_id}","starred_url":"https://api.github.com/users/probins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/probins/subscriptions","organizations_url":"https://api.github.com/users/probins/orgs","repos_url":"https://api.github.com/users/probins/repos","events_url":"https://api.github.com/users/probins/events{/privacy}","received_events_url":"https://api.github.com/users/probins/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-17T08:50:31Z","updated_at":"2017-08-17T08:50:31Z","closed_at":null,"body":"I notice a small difference between `minify` and `babel` with preset. I'm minifying a directory which includes some files which only contain comments (used for creating docs). `babel` accepts these without problem, whereas `minify` fails with 'Syntax error'. Minifying a comment file will create an empty file which serves little purpose, so it's better not to try minifying these. But the error msg is not very helpful, as it doesn't say in which file the syntax error is occurring. Worth catching these errors and skipping files with no code? Or perhaps just document in the Readme that comment-only files should be excluded from the input file list? "}}
{"actor":{"display_login":"probins"}}