{"action":"opened","number":49,"pull_request":{"url":"https://api.github.com/repos/geelen/jspm-loader-css/pulls/49","id":58728420,"html_url":"https://github.com/geelen/jspm-loader-css/pull/49","diff_url":"https://github.com/geelen/jspm-loader-css/pull/49.diff","patch_url":"https://github.com/geelen/jspm-loader-css/pull/49.patch","issue_url":"https://api.github.com/repos/geelen/jspm-loader-css/issues/49","number":49,"state":"open","locked":false,"title":"Add an option to produce a separate CSS file (fix #6) and minification (fix #7)","user":{"login":"oligot","id":1004034,"avatar_url":"https://avatars.githubusercontent.com/u/1004034?v=3","gravatar_id":"","url":"https://api.github.com/users/oligot","html_url":"https://github.com/oligot","followers_url":"https://api.github.com/users/oligot/followers","following_url":"https://api.github.com/users/oligot/following{/other_user}","gists_url":"https://api.github.com/users/oligot/gists{/gist_id}","starred_url":"https://api.github.com/users/oligot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oligot/subscriptions","organizations_url":"https://api.github.com/users/oligot/orgs","repos_url":"https://api.github.com/users/oligot/repos","events_url":"https://api.github.com/users/oligot/events{/privacy}","received_events_url":"https://api.github.com/users/oligot/received_events","type":"User","site_admin":false},"body":"By default, CSS is inlined into the JS bundle and injected on execution.\r\nThis commit adds an option (`separateCSS`) that allows to produce a separate CSS\r\nfile, as available in the main CSS plugin[1].\r\nThe code is heavily influenced by the main CSS plugin, so it also uses\r\nclean-css[2] under the hood to produce the CSS file.\r\n\r\nOne nice side effect of using clean-css is that we can also optionally minify\r\nthe CSS, using the Jspm CLI option --minify/-m\r\n> jspm bundle ... --minify\r\n\r\nCSS source maps are also supported thanks to clean-css.\r\n\r\n[1] https://github.com/systemjs/plugin-css\r\n[2] https://github.com/jakubpawlowicz/clean-css","created_at":"2016-02-09T10:26:46Z","updated_at":"2016-02-09T10:26:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/geelen/jspm-loader-css/pulls/49/commits","review_comments_url":"https://api.github.com/repos/geelen/jspm-loader-css/pulls/49/comments","review_comment_url":"https://api.github.com/repos/geelen/jspm-loader-css/pulls/comments{/number}","comments_url":"https://api.github.com/repos/geelen/jspm-loader-css/issues/49/comments","statuses_url":"https://api.github.com/repos/geelen/jspm-loader-css/statuses/25aac83a305ba8d690a82cdbeb9fe1ace6f03cc1","head":{"label":"oligot:separate-css","ref":"separate-css","sha":"25aac83a305ba8d690a82cdbeb9fe1ace6f03cc1","user":{"login":"oligot","id":1004034,"avatar_url":"https://avatars.githubusercontent.com/u/1004034?v=3","gravatar_id":"","url":"https://api.github.com/users/oligot","html_url":"https://github.com/oligot","followers_url":"https://api.github.com/users/oligot/followers","following_url":"https://api.github.com/users/oligot/following{/other_user}","gists_url":"https://api.github.com/users/oligot/gists{/gist_id}","starred_url":"https://api.github.com/users/oligot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oligot/subscriptions","organizations_url":"https://api.github.com/users/oligot/orgs","repos_url":"https://api.github.com/users/oligot/repos","events_url":"https://api.github.com/users/oligot/events{/privacy}","received_events_url":"https://api.github.com/users/oligot/received_events","type":"User","site_admin":false},"repo":{"id":51359371,"name":"jspm-loader-css","full_name":"oligot/jspm-loader-css","owner":{"login":"oligot","id":1004034,"avatar_url":"https://avatars.githubusercontent.com/u/1004034?v=3","gravatar_id":"","url":"https://api.github.com/users/oligot","html_url":"https://github.com/oligot","followers_url":"https://api.github.com/users/oligot/followers","following_url":"https://api.github.com/users/oligot/following{/other_user}","gists_url":"https://api.github.com/users/oligot/gists{/gist_id}","starred_url":"https://api.github.com/users/oligot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oligot/subscriptions","organizations_url":"https://api.github.com/users/oligot/orgs","repos_url":"https://api.github.com/users/oligot/repos","events_url":"https://api.github.com/users/oligot/events{/privacy}","received_events_url":"https://api.github.com/users/oligot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oligot/jspm-loader-css","description":null,"fork":true,"url":"https://api.github.com/repos/oligot/jspm-loader-css","forks_url":"https://api.github.com/repos/oligot/jspm-loader-css/forks","keys_url":"https://api.github.com/repos/oligot/jspm-loader-css/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oligot/jspm-loader-css/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oligot/jspm-loader-css/teams","hooks_url":"https://api.github.com/repos/oligot/jspm-loader-css/hooks","issue_events_url":"https://api.github.com/repos/oligot/jspm-loader-css/issues/events{/number}","events_url":"https://api.github.com/repos/oligot/jspm-loader-css/events","assignees_url":"https://api.github.com/repos/oligot/jspm-loader-css/assignees{/user}","branches_url":"https://api.github.com/repos/oligot/jspm-loader-css/branches{/branch}","tags_url":"https://api.github.com/repos/oligot/jspm-loader-css/tags","blobs_url":"https://api.github.com/repos/oligot/jspm-loader-css/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oligot/jspm-loader-css/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oligot/jspm-loader-css/git/refs{/sha}","trees_url":"https://api.github.com/repos/oligot/jspm-loader-css/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oligot/jspm-loader-css/statuses/{sha}","languages_url":"https://api.github.com/repos/oligot/jspm-loader-css/languages","stargazers_url":"https://api.github.com/repos/oligot/jspm-loader-css/stargazers","contributors_url":"https://api.github.com/repos/oligot/jspm-loader-css/contributors","subscribers_url":"https://api.github.com/repos/oligot/jspm-loader-css/subscribers","subscription_url":"https://api.github.com/repos/oligot/jspm-loader-css/subscription","commits_url":"https://api.github.com/repos/oligot/jspm-loader-css/commits{/sha}","git_commits_url":"https://api.github.com/repos/oligot/jspm-loader-css/git/commits{/sha}","comments_url":"https://api.github.com/repos/oligot/jspm-loader-css/comments{/number}","issue_comment_url":"https://api.github.com/repos/oligot/jspm-loader-css/issues/comments{/number}","contents_url":"https://api.github.com/repos/oligot/jspm-loader-css/contents/{+path}","compare_url":"https://api.github.com/repos/oligot/jspm-loader-css/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oligot/jspm-loader-css/merges","archive_url":"https://api.github.com/repos/oligot/jspm-loader-css/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oligot/jspm-loader-css/downloads","issues_url":"https://api.github.com/repos/oligot/jspm-loader-css/issues{/number}","pulls_url":"https://api.github.com/repos/oligot/jspm-loader-css/pulls{/number}","milestones_url":"https://api.github.com/repos/oligot/jspm-loader-css/milestones{/number}","notifications_url":"https://api.github.com/repos/oligot/jspm-loader-css/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oligot/jspm-loader-css/labels{/name}","releases_url":"https://api.github.com/repos/oligot/jspm-loader-css/releases{/id}","deployments_url":"https://api.github.com/repos/oligot/jspm-loader-css/deployments","created_at":"2016-02-09T10:14:04Z","updated_at":"2016-02-09T10:14:05Z","pushed_at":"2016-02-09T10:25:27Z","git_url":"git://github.com/oligot/jspm-loader-css.git","ssh_url":"git@github.com:oligot/jspm-loader-css.git","clone_url":"https://github.com/oligot/jspm-loader-css.git","svn_url":"https://github.com/oligot/jspm-loader-css","homepage":null,"size":460,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"geelen:master","ref":"master","sha":"9caaffad83a0ec2324bb2d2169caaea6c0c7cf3c","user":{"login":"geelen","id":23264,"avatar_url":"https://avatars.githubusercontent.com/u/23264?v=3","gravatar_id":"","url":"https://api.github.com/users/geelen","html_url":"https://github.com/geelen","followers_url":"https://api.github.com/users/geelen/followers","following_url":"https://api.github.com/users/geelen/following{/other_user}","gists_url":"https://api.github.com/users/geelen/gists{/gist_id}","starred_url":"https://api.github.com/users/geelen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geelen/subscriptions","organizations_url":"https://api.github.com/users/geelen/orgs","repos_url":"https://api.github.com/users/geelen/repos","events_url":"https://api.github.com/users/geelen/events{/privacy}","received_events_url":"https://api.github.com/users/geelen/received_events","type":"User","site_admin":false},"repo":{"id":36359411,"name":"jspm-loader-css","full_name":"geelen/jspm-loader-css","owner":{"login":"geelen","id":23264,"avatar_url":"https://avatars.githubusercontent.com/u/23264?v=3","gravatar_id":"","url":"https://api.github.com/users/geelen","html_url":"https://github.com/geelen","followers_url":"https://api.github.com/users/geelen/followers","following_url":"https://api.github.com/users/geelen/following{/other_user}","gists_url":"https://api.github.com/users/geelen/gists{/gist_id}","starred_url":"https://api.github.com/users/geelen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geelen/subscriptions","organizations_url":"https://api.github.com/users/geelen/orgs","repos_url":"https://api.github.com/users/geelen/repos","events_url":"https://api.github.com/users/geelen/events{/privacy}","received_events_url":"https://api.github.com/users/geelen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/geelen/jspm-loader-css","description":null,"fork":false,"url":"https://api.github.com/repos/geelen/jspm-loader-css","forks_url":"https://api.github.com/repos/geelen/jspm-loader-css/forks","keys_url":"https://api.github.com/repos/geelen/jspm-loader-css/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geelen/jspm-loader-css/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geelen/jspm-loader-css/teams","hooks_url":"https://api.github.com/repos/geelen/jspm-loader-css/hooks","issue_events_url":"https://api.github.com/repos/geelen/jspm-loader-css/issues/events{/number}","events_url":"https://api.github.com/repos/geelen/jspm-loader-css/events","assignees_url":"https://api.github.com/repos/geelen/jspm-loader-css/assignees{/user}","branches_url":"https://api.github.com/repos/geelen/jspm-loader-css/branches{/branch}","tags_url":"https://api.github.com/repos/geelen/jspm-loader-css/tags","blobs_url":"https://api.github.com/repos/geelen/jspm-loader-css/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geelen/jspm-loader-css/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geelen/jspm-loader-css/git/refs{/sha}","trees_url":"https://api.github.com/repos/geelen/jspm-loader-css/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geelen/jspm-loader-css/statuses/{sha}","languages_url":"https://api.github.com/repos/geelen/jspm-loader-css/languages","stargazers_url":"https://api.github.com/repos/geelen/jspm-loader-css/stargazers","contributors_url":"https://api.github.com/repos/geelen/jspm-loader-css/contributors","subscribers_url":"https://api.github.com/repos/geelen/jspm-loader-css/subscribers","subscription_url":"https://api.github.com/repos/geelen/jspm-loader-css/subscription","commits_url":"https://api.github.com/repos/geelen/jspm-loader-css/commits{/sha}","git_commits_url":"https://api.github.com/repos/geelen/jspm-loader-css/git/commits{/sha}","comments_url":"https://api.github.com/repos/geelen/jspm-loader-css/comments{/number}","issue_comment_url":"https://api.github.com/repos/geelen/jspm-loader-css/issues/comments{/number}","contents_url":"https://api.github.com/repos/geelen/jspm-loader-css/contents/{+path}","compare_url":"https://api.github.com/repos/geelen/jspm-loader-css/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geelen/jspm-loader-css/merges","archive_url":"https://api.github.com/repos/geelen/jspm-loader-css/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geelen/jspm-loader-css/downloads","issues_url":"https://api.github.com/repos/geelen/jspm-loader-css/issues{/number}","pulls_url":"https://api.github.com/repos/geelen/jspm-loader-css/pulls{/number}","milestones_url":"https://api.github.com/repos/geelen/jspm-loader-css/milestones{/number}","notifications_url":"https://api.github.com/repos/geelen/jspm-loader-css/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geelen/jspm-loader-css/labels{/name}","releases_url":"https://api.github.com/repos/geelen/jspm-loader-css/releases{/id}","deployments_url":"https://api.github.com/repos/geelen/jspm-loader-css/deployments","created_at":"2015-05-27T10:19:39Z","updated_at":"2016-01-12T12:53:16Z","pushed_at":"2016-02-09T10:26:46Z","git_url":"git://github.com/geelen/jspm-loader-css.git","ssh_url":"git@github.com:geelen/jspm-loader-css.git","clone_url":"https://github.com/geelen/jspm-loader-css.git","svn_url":"https://github.com/geelen/jspm-loader-css","homepage":null,"size":464,"stargazers_count":36,"watchers_count":36,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":23,"forks":11,"open_issues":23,"watchers":36,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/geelen/jspm-loader-css/pulls/49"},"html":{"href":"https://github.com/geelen/jspm-loader-css/pull/49"},"issue":{"href":"https://api.github.com/repos/geelen/jspm-loader-css/issues/49"},"comments":{"href":"https://api.github.com/repos/geelen/jspm-loader-css/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/geelen/jspm-loader-css/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/geelen/jspm-loader-css/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/geelen/jspm-loader-css/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/geelen/jspm-loader-css/statuses/25aac83a305ba8d690a82cdbeb9fe1ace6f03cc1"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":89,"deletions":19,"changed_files":2}}