{"action":"created","issue":{"url":"https://api.github.com/repos/mholt/caddy/issues/622","repository_url":"https://api.github.com/repos/mholt/caddy","labels_url":"https://api.github.com/repos/mholt/caddy/issues/622/labels{/name}","comments_url":"https://api.github.com/repos/mholt/caddy/issues/622/comments","events_url":"https://api.github.com/repos/mholt/caddy/issues/622/events","html_url":"https://github.com/mholt/caddy/issues/622","id":135244644,"number":622,"title":"Any interest in minifiers?","user":{"login":"cathalgarvey","id":1167837,"avatar_url":"https://avatars.githubusercontent.com/u/1167837?v=3","gravatar_id":"","url":"https://api.github.com/users/cathalgarvey","html_url":"https://github.com/cathalgarvey","followers_url":"https://api.github.com/users/cathalgarvey/followers","following_url":"https://api.github.com/users/cathalgarvey/following{/other_user}","gists_url":"https://api.github.com/users/cathalgarvey/gists{/gist_id}","starred_url":"https://api.github.com/users/cathalgarvey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cathalgarvey/subscriptions","organizations_url":"https://api.github.com/users/cathalgarvey/orgs","repos_url":"https://api.github.com/users/cathalgarvey/repos","events_url":"https://api.github.com/users/cathalgarvey/events{/privacy}","received_events_url":"https://api.github.com/users/cathalgarvey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mholt/caddy/labels/addon","name":"addon","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-02-21T19:05:22Z","updated_at":"2016-04-01T14:31:27Z","closed_at":null,"body":"I was browsing [@tdewolff's minify](https://github.com/tdewolff/minify) and thought \"this would be pretty cool on Caddy\". :)\r\n\r\nIf there are docs on how to write extensions/plugins I could investigate contributing, if I find time. Is anyone else playing with this idea, though? A caching minifier middleware for caddy would be a really nice feature, especially for highly cacheable sites like static blogs?"},"comment":{"url":"https://api.github.com/repos/mholt/caddy/issues/comments/204417761","html_url":"https://github.com/mholt/caddy/issues/622#issuecomment-204417761","issue_url":"https://api.github.com/repos/mholt/caddy/issues/622","id":204417761,"user":{"login":"mholt","id":1128849,"avatar_url":"https://avatars.githubusercontent.com/u/1128849?v=3","gravatar_id":"","url":"https://api.github.com/users/mholt","html_url":"https://github.com/mholt","followers_url":"https://api.github.com/users/mholt/followers","following_url":"https://api.github.com/users/mholt/following{/other_user}","gists_url":"https://api.github.com/users/mholt/gists{/gist_id}","starred_url":"https://api.github.com/users/mholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mholt/subscriptions","organizations_url":"https://api.github.com/users/mholt/orgs","repos_url":"https://api.github.com/users/mholt/repos","events_url":"https://api.github.com/users/mholt/events{/privacy}","received_events_url":"https://api.github.com/users/mholt/received_events","type":"User","site_admin":false},"created_at":"2016-04-01T14:31:27Z","updated_at":"2016-04-01T14:31:27Z","body":"@DenBeke \r\n\r\n> Wouldn't that be out of Caddy's scope? Because when using Sass, one often has other Sass dependencies (think of stuff like Bourbon).\r\n\r\nYeah, you're right. Maybe it's out of the scope of Caddy core, but not out of the scope for add-ons; that's the point of add-ons (plugins, whatever) -- is to extend the functionality of your web server to fit your workflow/situation better.\r\n\r\n@captncraig \r\n\r\n> The other problem is most of the tools in that realm are in node or some\r\nother non-go language. If not in pure go, then there are still dependencies\r\nyou have to install to make it work.\r\n\r\nVery good point -- the minifier should be pure Go. We do have the git addon which does depend on having git installed, for example, but that's not *too* unreasonable and it's a totally separate command, not a C binding -- C bindings are a no-no, but if there is absolutely no pure Go alternative, add-ons can probably get away with requiring an external program to be installed."}}