{"action":"created","issue":{"url":"https://api.github.com/repos/react-webpack-generators/react-webpack-template/issues/68","repository_url":"https://api.github.com/repos/react-webpack-generators/react-webpack-template","labels_url":"https://api.github.com/repos/react-webpack-generators/react-webpack-template/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/react-webpack-generators/react-webpack-template/issues/68/comments","events_url":"https://api.github.com/repos/react-webpack-generators/react-webpack-template/issues/68/events","html_url":"https://github.com/react-webpack-generators/react-webpack-template/issues/68","id":174893425,"number":68,"title":"V2 -- Centralize defaultPort setting","user":{"login":"sthzg","id":1827893,"avatar_url":"https://avatars.githubusercontent.com/u/1827893?v=3","gravatar_id":"","url":"https://api.github.com/users/sthzg","html_url":"https://github.com/sthzg","followers_url":"https://api.github.com/users/sthzg/followers","following_url":"https://api.github.com/users/sthzg/following{/other_user}","gists_url":"https://api.github.com/users/sthzg/gists{/gist_id}","starred_url":"https://api.github.com/users/sthzg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sthzg/subscriptions","organizations_url":"https://api.github.com/users/sthzg/orgs","repos_url":"https://api.github.com/users/sthzg/repos","events_url":"https://api.github.com/users/sthzg/events{/privacy}","received_events_url":"https://api.github.com/users/sthzg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-03T11:55:45Z","updated_at":"2016-09-05T05:33:45Z","closed_at":null,"body":"The port for the dev server reflects in two places:\r\n\r\n- [Base.js#L81](https://github.com/react-webpack-generators/react-webpack-template/blob/2.x/conf/webpack/Base.js#L81)\r\n- [Dev.js#L16](https://github.com/react-webpack-generators/react-webpack-template/blob/2.x/conf/webpack/Dev.js#L16)\r\n\r\nThis value should be populated from a single setting and additionally be overridable from outside through an env var (e.g. for spinning up a dev server on a separate port wo/ needing to modify the config file that is under VC)."},"comment":{"url":"https://api.github.com/repos/react-webpack-generators/react-webpack-template/issues/comments/244662016","html_url":"https://github.com/react-webpack-generators/react-webpack-template/issues/68#issuecomment-244662016","issue_url":"https://api.github.com/repos/react-webpack-generators/react-webpack-template/issues/68","id":244662016,"user":{"login":"weblogixx","id":757613,"avatar_url":"https://avatars.githubusercontent.com/u/757613?v=3","gravatar_id":"","url":"https://api.github.com/users/weblogixx","html_url":"https://github.com/weblogixx","followers_url":"https://api.github.com/users/weblogixx/followers","following_url":"https://api.github.com/users/weblogixx/following{/other_user}","gists_url":"https://api.github.com/users/weblogixx/gists{/gist_id}","starred_url":"https://api.github.com/users/weblogixx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weblogixx/subscriptions","organizations_url":"https://api.github.com/users/weblogixx/orgs","repos_url":"https://api.github.com/users/weblogixx/repos","events_url":"https://api.github.com/users/weblogixx/events{/privacy}","received_events_url":"https://api.github.com/users/weblogixx/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T05:33:45Z","updated_at":"2016-09-05T05:33:45Z","body":"@sthzg, you are right about this. We had a setting (at least) in the old template, so one could set it in a single file. This went overboard when I was updating the config (regression).\r\n\r\nMaybe we could set it via cross-env, it is already included in the new setup. You could do something like ./node_modules/.bin/cross-env WEBPACK_PORT=80 npm start to inject the port variable.\r\n\r\nWill have a look at it."}}
{"actor":{"display_login":"weblogixx"}}