{"action":"opened","number":253,"pull_request":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/253","id":67428054,"html_url":"https://github.com/gatsbyjs/gatsby/pull/253","diff_url":"https://github.com/gatsbyjs/gatsby/pull/253.diff","patch_url":"https://github.com/gatsbyjs/gatsby/pull/253.patch","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/253","number":253,"state":"open","locked":false,"title":"Webpack config refactor; CSS now generated with HTML","user":{"login":"scottnonnenberg","id":443005,"avatar_url":"https://avatars.githubusercontent.com/u/443005?v=3","gravatar_id":"","url":"https://api.github.com/users/scottnonnenberg","html_url":"https://github.com/scottnonnenberg","followers_url":"https://api.github.com/users/scottnonnenberg/followers","following_url":"https://api.github.com/users/scottnonnenberg/following{/other_user}","gists_url":"https://api.github.com/users/scottnonnenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/scottnonnenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottnonnenberg/subscriptions","organizations_url":"https://api.github.com/users/scottnonnenberg/orgs","repos_url":"https://api.github.com/users/scottnonnenberg/repos","events_url":"https://api.github.com/users/scottnonnenberg/events{/privacy}","received_events_url":"https://api.github.com/users/scottnonnenberg/received_events","type":"User","site_admin":false},"body":"I realized that the `noProductionJavascript` option wasn't quite right because it still generates a weird unminified `public/bundle.js`, and you get no generated `styles.css`. This pull request changes that.\r\n\r\nFirst, it makes the three stages in `util/webpack.config.js` a little easier to understand, renaming them to:\r\n\r\n1. develop\r\n2. build-static\r\n3. build-spa\r\n\r\nSecond, it moves `styles.css` generation to Stage 2, the 'build-static' stage.\r\n\r\nThird, it renames the temp webpack-generated file required by `static-site-generator-webpack-plugin` (previously `public/bundle.js`, so it was overwritten by the final webpack stage) to `public/render-page.js` and deletes it when Stage 2 is complete.","created_at":"2016-04-21T21:49:42Z","updated_at":"2016-04-21T21:49:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/253/commits","review_comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/253/comments","review_comment_url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/253/comments","statuses_url":"https://api.github.com/repos/gatsbyjs/gatsby/statuses/cd8122a2e738d74ae903183e5be5a18c4e81f197","head":{"label":"scottnonnenberg:build-refactor","ref":"build-refactor","sha":"cd8122a2e738d74ae903183e5be5a18c4e81f197","user":{"login":"scottnonnenberg","id":443005,"avatar_url":"https://avatars.githubusercontent.com/u/443005?v=3","gravatar_id":"","url":"https://api.github.com/users/scottnonnenberg","html_url":"https://github.com/scottnonnenberg","followers_url":"https://api.github.com/users/scottnonnenberg/followers","following_url":"https://api.github.com/users/scottnonnenberg/following{/other_user}","gists_url":"https://api.github.com/users/scottnonnenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/scottnonnenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottnonnenberg/subscriptions","organizations_url":"https://api.github.com/users/scottnonnenberg/orgs","repos_url":"https://api.github.com/users/scottnonnenberg/repos","events_url":"https://api.github.com/users/scottnonnenberg/events{/privacy}","received_events_url":"https://api.github.com/users/scottnonnenberg/received_events","type":"User","site_admin":false},"repo":{"id":50150839,"name":"gatsby","full_name":"scottnonnenberg/gatsby","owner":{"login":"scottnonnenberg","id":443005,"avatar_url":"https://avatars.githubusercontent.com/u/443005?v=3","gravatar_id":"","url":"https://api.github.com/users/scottnonnenberg","html_url":"https://github.com/scottnonnenberg","followers_url":"https://api.github.com/users/scottnonnenberg/followers","following_url":"https://api.github.com/users/scottnonnenberg/following{/other_user}","gists_url":"https://api.github.com/users/scottnonnenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/scottnonnenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottnonnenberg/subscriptions","organizations_url":"https://api.github.com/users/scottnonnenberg/orgs","repos_url":"https://api.github.com/users/scottnonnenberg/repos","events_url":"https://api.github.com/users/scottnonnenberg/events{/privacy}","received_events_url":"https://api.github.com/users/scottnonnenberg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scottnonnenberg/gatsby","description":"Transform plain text into dynamic blogs and websites using React.js","fork":true,"url":"https://api.github.com/repos/scottnonnenberg/gatsby","forks_url":"https://api.github.com/repos/scottnonnenberg/gatsby/forks","keys_url":"https://api.github.com/repos/scottnonnenberg/gatsby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scottnonnenberg/gatsby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scottnonnenberg/gatsby/teams","hooks_url":"https://api.github.com/repos/scottnonnenberg/gatsby/hooks","issue_events_url":"https://api.github.com/repos/scottnonnenberg/gatsby/issues/events{/number}","events_url":"https://api.github.com/repos/scottnonnenberg/gatsby/events","assignees_url":"https://api.github.com/repos/scottnonnenberg/gatsby/assignees{/user}","branches_url":"https://api.github.com/repos/scottnonnenberg/gatsby/branches{/branch}","tags_url":"https://api.github.com/repos/scottnonnenberg/gatsby/tags","blobs_url":"https://api.github.com/repos/scottnonnenberg/gatsby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scottnonnenberg/gatsby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scottnonnenberg/gatsby/git/refs{/sha}","trees_url":"https://api.github.com/repos/scottnonnenberg/gatsby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scottnonnenberg/gatsby/statuses/{sha}","languages_url":"https://api.github.com/repos/scottnonnenberg/gatsby/languages","stargazers_url":"https://api.github.com/repos/scottnonnenberg/gatsby/stargazers","contributors_url":"https://api.github.com/repos/scottnonnenberg/gatsby/contributors","subscribers_url":"https://api.github.com/repos/scottnonnenberg/gatsby/subscribers","subscription_url":"https://api.github.com/repos/scottnonnenberg/gatsby/subscription","commits_url":"https://api.github.com/repos/scottnonnenberg/gatsby/commits{/sha}","git_commits_url":"https://api.github.com/repos/scottnonnenberg/gatsby/git/commits{/sha}","comments_url":"https://api.github.com/repos/scottnonnenberg/gatsby/comments{/number}","issue_comment_url":"https://api.github.com/repos/scottnonnenberg/gatsby/issues/comments{/number}","contents_url":"https://api.github.com/repos/scottnonnenberg/gatsby/contents/{+path}","compare_url":"https://api.github.com/repos/scottnonnenberg/gatsby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scottnonnenberg/gatsby/merges","archive_url":"https://api.github.com/repos/scottnonnenberg/gatsby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scottnonnenberg/gatsby/downloads","issues_url":"https://api.github.com/repos/scottnonnenberg/gatsby/issues{/number}","pulls_url":"https://api.github.com/repos/scottnonnenberg/gatsby/pulls{/number}","milestones_url":"https://api.github.com/repos/scottnonnenberg/gatsby/milestones{/number}","notifications_url":"https://api.github.com/repos/scottnonnenberg/gatsby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scottnonnenberg/gatsby/labels{/name}","releases_url":"https://api.github.com/repos/scottnonnenberg/gatsby/releases{/id}","deployments_url":"https://api.github.com/repos/scottnonnenberg/gatsby/deployments","created_at":"2016-01-22T02:05:18Z","updated_at":"2016-01-22T02:05:19Z","pushed_at":"2016-04-21T21:36:34Z","git_url":"git://github.com/scottnonnenberg/gatsby.git","ssh_url":"git@github.com:scottnonnenberg/gatsby.git","clone_url":"https://github.com/scottnonnenberg/gatsby.git","svn_url":"https://github.com/scottnonnenberg/gatsby","homepage":"","size":1341,"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":"gatsbyjs:master","ref":"master","sha":"ab9736676b030b148032a4e6b66b377ee34ee094","user":{"login":"gatsbyjs","id":12551863,"avatar_url":"https://avatars.githubusercontent.com/u/12551863?v=3","gravatar_id":"","url":"https://api.github.com/users/gatsbyjs","html_url":"https://github.com/gatsbyjs","followers_url":"https://api.github.com/users/gatsbyjs/followers","following_url":"https://api.github.com/users/gatsbyjs/following{/other_user}","gists_url":"https://api.github.com/users/gatsbyjs/gists{/gist_id}","starred_url":"https://api.github.com/users/gatsbyjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gatsbyjs/subscriptions","organizations_url":"https://api.github.com/users/gatsbyjs/orgs","repos_url":"https://api.github.com/users/gatsbyjs/repos","events_url":"https://api.github.com/users/gatsbyjs/events{/privacy}","received_events_url":"https://api.github.com/users/gatsbyjs/received_events","type":"Organization","site_admin":false},"repo":{"id":36040894,"name":"gatsby","full_name":"gatsbyjs/gatsby","owner":{"login":"gatsbyjs","id":12551863,"avatar_url":"https://avatars.githubusercontent.com/u/12551863?v=3","gravatar_id":"","url":"https://api.github.com/users/gatsbyjs","html_url":"https://github.com/gatsbyjs","followers_url":"https://api.github.com/users/gatsbyjs/followers","following_url":"https://api.github.com/users/gatsbyjs/following{/other_user}","gists_url":"https://api.github.com/users/gatsbyjs/gists{/gist_id}","starred_url":"https://api.github.com/users/gatsbyjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gatsbyjs/subscriptions","organizations_url":"https://api.github.com/users/gatsbyjs/orgs","repos_url":"https://api.github.com/users/gatsbyjs/repos","events_url":"https://api.github.com/users/gatsbyjs/events{/privacy}","received_events_url":"https://api.github.com/users/gatsbyjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gatsbyjs/gatsby","description":"Transform plain text into dynamic blogs and websites using React.js","fork":false,"url":"https://api.github.com/repos/gatsbyjs/gatsby","forks_url":"https://api.github.com/repos/gatsbyjs/gatsby/forks","keys_url":"https://api.github.com/repos/gatsbyjs/gatsby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gatsbyjs/gatsby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gatsbyjs/gatsby/teams","hooks_url":"https://api.github.com/repos/gatsbyjs/gatsby/hooks","issue_events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/events{/number}","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/events","assignees_url":"https://api.github.com/repos/gatsbyjs/gatsby/assignees{/user}","branches_url":"https://api.github.com/repos/gatsbyjs/gatsby/branches{/branch}","tags_url":"https://api.github.com/repos/gatsbyjs/gatsby/tags","blobs_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/refs{/sha}","trees_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gatsbyjs/gatsby/statuses/{sha}","languages_url":"https://api.github.com/repos/gatsbyjs/gatsby/languages","stargazers_url":"https://api.github.com/repos/gatsbyjs/gatsby/stargazers","contributors_url":"https://api.github.com/repos/gatsbyjs/gatsby/contributors","subscribers_url":"https://api.github.com/repos/gatsbyjs/gatsby/subscribers","subscription_url":"https://api.github.com/repos/gatsbyjs/gatsby/subscription","commits_url":"https://api.github.com/repos/gatsbyjs/gatsby/commits{/sha}","git_commits_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/commits{/sha}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/comments{/number}","issue_comment_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments{/number}","contents_url":"https://api.github.com/repos/gatsbyjs/gatsby/contents/{+path}","compare_url":"https://api.github.com/repos/gatsbyjs/gatsby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gatsbyjs/gatsby/merges","archive_url":"https://api.github.com/repos/gatsbyjs/gatsby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gatsbyjs/gatsby/downloads","issues_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues{/number}","pulls_url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls{/number}","milestones_url":"https://api.github.com/repos/gatsbyjs/gatsby/milestones{/number}","notifications_url":"https://api.github.com/repos/gatsbyjs/gatsby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/labels{/name}","releases_url":"https://api.github.com/repos/gatsbyjs/gatsby/releases{/id}","deployments_url":"https://api.github.com/repos/gatsbyjs/gatsby/deployments","created_at":"2015-05-21T22:43:05Z","updated_at":"2016-04-21T21:11:24Z","pushed_at":"2016-04-21T21:49:43Z","git_url":"git://github.com/gatsbyjs/gatsby.git","ssh_url":"git@github.com:gatsbyjs/gatsby.git","clone_url":"https://github.com/gatsbyjs/gatsby.git","svn_url":"https://github.com/gatsbyjs/gatsby","homepage":"","size":1389,"stargazers_count":2656,"watchers_count":2656,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":121,"mirror_url":null,"open_issues_count":39,"forks":121,"open_issues":39,"watchers":2656,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/253"},"html":{"href":"https://github.com/gatsbyjs/gatsby/pull/253"},"issue":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/issues/253"},"comments":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/issues/253/comments"},"review_comments":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/253/comments"},"review_comment":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/253/commits"},"statuses":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/statuses/cd8122a2e738d74ae903183e5be5a18c4e81f197"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":57,"deletions":43,"changed_files":4}}