{"action":"created","issue":{"url":"https://api.github.com/repos/material-components/material-components-web-react/issues/96","repository_url":"https://api.github.com/repos/material-components/material-components-web-react","labels_url":"https://api.github.com/repos/material-components/material-components-web-react/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/material-components/material-components-web-react/issues/96/comments","events_url":"https://api.github.com/repos/material-components/material-components-web-react/issues/96/events","html_url":"https://github.com/material-components/material-components-web-react/issues/96","id":330823620,"node_id":"MDU6SXNzdWUzMzA4MjM2MjA=","number":96,"title":"Server takes too long to start","user":{"login":"moog16","id":579873,"node_id":"MDQ6VXNlcjU3OTg3Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/579873?v=4","gravatar_id":"","url":"https://api.github.com/users/moog16","html_url":"https://github.com/moog16","followers_url":"https://api.github.com/users/moog16/followers","following_url":"https://api.github.com/users/moog16/following{/other_user}","gists_url":"https://api.github.com/users/moog16/gists{/gist_id}","starred_url":"https://api.github.com/users/moog16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moog16/subscriptions","organizations_url":"https://api.github.com/users/moog16/orgs","repos_url":"https://api.github.com/users/moog16/repos","events_url":"https://api.github.com/users/moog16/events{/privacy}","received_events_url":"https://api.github.com/users/moog16/received_events","type":"User","site_admin":false},"labels":[{"id":872852292,"node_id":"MDU6TGFiZWw4NzI4NTIyOTI=","url":"https://api.github.com/repos/material-components/material-components-web-react/labels/in-tracker","name":"in-tracker","color":"b4f934","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-08T22:47:04Z","updated_at":"2018-07-18T21:37:23Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Currently our screenshot tests take 200s on Travis to startup. We can decrease this time by decreasing the number of webpack configs we need to build. \r\n\r\nRelated PR: https://github.com/material-components/material-components-web-react/pull/6\r\n\r\nProposed solution:\r\nUse react-router to build a SPA of each page, which will result in one webpack config.\r\n\r\nKnown issues:\r\n\r\n1. CBT requires a statically served site. *Solution*: use react-router's hash router, similar to the catalog pages. By doing this, we can host the demo pages from GCP without having an app server like nGinx.\r\n1. CSS Name collisions. *Solution*: use css modules to obfuscate css classnames. When using css-loader from webpack, its a 1 line change to turn this feature on/off. Collisions will be near impossible, especially given we only have a few pages. If a naming collision does occur, we can increase the size of the hash (decreasing statistical chance of collision)."},"comment":{"url":"https://api.github.com/repos/material-components/material-components-web-react/issues/comments/406082366","html_url":"https://github.com/material-components/material-components-web-react/issues/96#issuecomment-406082366","issue_url":"https://api.github.com/repos/material-components/material-components-web-react/issues/96","id":406082366,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjA4MjM2Ng==","user":{"login":"lynnjepsen","id":4703432,"node_id":"MDQ6VXNlcjQ3MDM0MzI=","avatar_url":"https://avatars2.githubusercontent.com/u/4703432?v=4","gravatar_id":"","url":"https://api.github.com/users/lynnjepsen","html_url":"https://github.com/lynnjepsen","followers_url":"https://api.github.com/users/lynnjepsen/followers","following_url":"https://api.github.com/users/lynnjepsen/following{/other_user}","gists_url":"https://api.github.com/users/lynnjepsen/gists{/gist_id}","starred_url":"https://api.github.com/users/lynnjepsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lynnjepsen/subscriptions","organizations_url":"https://api.github.com/users/lynnjepsen/orgs","repos_url":"https://api.github.com/users/lynnjepsen/repos","events_url":"https://api.github.com/users/lynnjepsen/events{/privacy}","received_events_url":"https://api.github.com/users/lynnjepsen/received_events","type":"User","site_admin":false},"created_at":"2018-07-18T21:37:23Z","updated_at":"2018-07-18T21:37:23Z","author_association":"CONTRIBUTOR","body":"we're going to just make it one big entry point in webpack, and use react-router. This should significantly reduce the webpack compile time."}}
{"actor":{"display_login":"lynnjepsen"}}