{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/1073","labels_url":"https://api.github.com/repos/webpack/webpack/issues/1073/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/1073/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/1073/events","html_url":"https://github.com/webpack/webpack/issues/1073","id":77717269,"number":1073,"title":"custom dev server question","user":{"login":"darul75","id":2134003,"avatar_url":"https://avatars.githubusercontent.com/u/2134003?v=3","gravatar_id":"","url":"https://api.github.com/users/darul75","html_url":"https://github.com/darul75","followers_url":"https://api.github.com/users/darul75/followers","following_url":"https://api.github.com/users/darul75/following{/other_user}","gists_url":"https://api.github.com/users/darul75/gists{/gist_id}","starred_url":"https://api.github.com/users/darul75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darul75/subscriptions","organizations_url":"https://api.github.com/users/darul75/orgs","repos_url":"https://api.github.com/users/darul75/repos","events_url":"https://api.github.com/users/darul75/events{/privacy}","received_events_url":"https://api.github.com/users/darul75/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-18T16:26:01Z","updated_at":"2015-05-19T11:41:40Z","closed_at":null,"body":"hi @sokra and others,\r\n\r\n* In dev mode with just a client need, a webpack client config and a webpack-dev-server fits my need.\r\n* In production mode, a webpack config for both client and server fits my need.\r\n\r\nBut in dev mode with a need for a custom server, it starts to be tricky. I want to be able to debug my server side with custom api routes...get hot loading on client side and why not hot loading on server side too (NodeJS)\r\n\r\nI have done the following:\r\n\r\n- based on this documentation and \"existing server\" section http://webpack.github.io/docs/webpack-dev-server.html\r\n- my client side is packed with webpack and template generated by my express server targeting my client bundle. ok for this part.\r\n- but using react my express server is rendering react and not aware of changes in hot mode ?\r\n\r\nDo I need to webpack my server also ?\r\n\r\nI mean when changes are made, my client side is aware of it and reload everything, but on server side nothing is rebundle and node not restarted too.. (normal). One common case is when I change something on a react component, when rerendering I got normal warning about 'you client/server are not rendering same component...\" as my server is not changing anything in in logic to render react \"previous\" component.\r\n\r\nNot sure I am clear but it is to open the discussion ;)\r\n\r\n\r\nhttps://github.com/darul75/web-react"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/103455127","html_url":"https://github.com/webpack/webpack/issues/1073#issuecomment-103455127","issue_url":"https://api.github.com/repos/webpack/webpack/issues/1073","id":103455127,"user":{"login":"darul75","id":2134003,"avatar_url":"https://avatars.githubusercontent.com/u/2134003?v=3","gravatar_id":"","url":"https://api.github.com/users/darul75","html_url":"https://github.com/darul75","followers_url":"https://api.github.com/users/darul75/followers","following_url":"https://api.github.com/users/darul75/following{/other_user}","gists_url":"https://api.github.com/users/darul75/gists{/gist_id}","starred_url":"https://api.github.com/users/darul75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darul75/subscriptions","organizations_url":"https://api.github.com/users/darul75/orgs","repos_url":"https://api.github.com/users/darul75/repos","events_url":"https://api.github.com/users/darul75/events{/privacy}","received_events_url":"https://api.github.com/users/darul75/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T11:41:40Z","updated_at":"2015-05-19T11:41:40Z","body":"I have updated the server config to handle signal, I know I need to figure out more about how all this is working but could you confirm this workflow:\r\n\r\n- first script start both client and server webpack config with a webpack-dev-server running on port 8081.\r\n\r\n```\r\nwebpack --config conf/webpack-dev-server.js | webpack-dev-server --port 8081 --config conf/webpack-dev-server.js --hot --history-api-fallback --progress --colors --inline --content-base ./build\r\n```\r\n\r\nit produces an app.js client file  and server.js for server.\r\n\r\n- second simply run following command\r\n\r\n```\r\nnode server.js\r\n```\r\n\r\nWhen changes occured, client and server are re-bundled, but I do not know how to self patch nodejs  process.\r\n\r\nDo I need to use nodemon and that kind of glue ?\r\n\r\nThx"}}