{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1268","repository_url":"https://api.github.com/repos/ant-design/ant-design-pro","labels_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1268/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1268/comments","events_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1268/events","html_url":"https://github.com/ant-design/ant-design-pro/issues/1268","id":312793089,"number":1268,"title":"将publicPath从\"/\"改成\"./\"时, npm start 运行时变成静态资源服务","user":{"login":"zmayor","id":18019463,"avatar_url":"https://avatars0.githubusercontent.com/u/18019463?v=4","gravatar_id":"","url":"https://api.github.com/users/zmayor","html_url":"https://github.com/zmayor","followers_url":"https://api.github.com/users/zmayor/followers","following_url":"https://api.github.com/users/zmayor/following{/other_user}","gists_url":"https://api.github.com/users/zmayor/gists{/gist_id}","starred_url":"https://api.github.com/users/zmayor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zmayor/subscriptions","organizations_url":"https://api.github.com/users/zmayor/orgs","repos_url":"https://api.github.com/users/zmayor/repos","events_url":"https://api.github.com/users/zmayor/events{/privacy}","received_events_url":"https://api.github.com/users/zmayor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-10T06:49:21Z","updated_at":"2018-04-10T06:49:22Z","closed_at":null,"author_association":"NONE","body":"#### Environment(required) | 环境\r\n\r\n- roadhog version（roadhog版本）\r\n- Nodejs and Npm version（Nodejs 和 Npm 版本）\r\n- Operating environment (e.g. OS name) and its version（操作系统版本）:\r\n\r\n`roadhog` version 2.1\r\n`Node` 8.7    `npm` 5.4.2\r\n`windows 10 x64`\r\n\r\n）\r\n将 `webpackrc.js` 中的 `publicPath` 由 `/` 改成 `./` 后, npm run build 没有问题, 但是 npm start 时, 运行的服务器却变成了静态资源服务器, dev server 好像没运行起来\r\n![image](https://user-images.githubusercontent.com/18019463/38539936-b19693d6-3ccc-11e8-9bde-e4dab855fd13.png)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/comments/379992868","html_url":"https://github.com/ant-design/ant-design-pro/issues/1268#issuecomment-379992868","issue_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1268","id":379992868,"user":{"login":"ant-design-bot","id":26566442,"avatar_url":"https://avatars0.githubusercontent.com/u/26566442?v=4","gravatar_id":"","url":"https://api.github.com/users/ant-design-bot","html_url":"https://github.com/ant-design-bot","followers_url":"https://api.github.com/users/ant-design-bot/followers","following_url":"https://api.github.com/users/ant-design-bot/following{/other_user}","gists_url":"https://api.github.com/users/ant-design-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/ant-design-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ant-design-bot/subscriptions","organizations_url":"https://api.github.com/users/ant-design-bot/orgs","repos_url":"https://api.github.com/users/ant-design-bot/repos","events_url":"https://api.github.com/users/ant-design-bot/events{/privacy}","received_events_url":"https://api.github.com/users/ant-design-bot/received_events","type":"User","site_admin":false},"created_at":"2018-04-10T06:49:22Z","updated_at":"2018-04-10T06:49:22Z","author_association":"NONE","body":"Translation of this issue:\n\n<hr/>\n\n## When changing public path from \"/\" to \"./\", the npm start runtime becomes a static resource service\n\n#### Environment(required) | Environment\r\n\r\n- roadhog version (roadhog version)\r\n- Nodejs and Npm version (Nodejs and Npm versions)\r\n- Operating environment (e.g. OS name) and its version:\r\n\r\n`roadhog` version 2.1\r\n`Node` 8.7 `npm` 5.4.2\r\n`windows 10 x64`\r\n\r\n)\r\nAfter changing `publicPath` in `webpackrc.js` from `/` to `./`, npm run build has no problem, but at npm start, the running server becomes a static resource server, and dev server does not seem to be running stand up\r\n![image](https://user-images.githubusercontent.com/18019463/38539936-b19693d6-3ccc-11e8-9bde-e4dab855fd13.png)"}}
{"actor":{"display_login":"ant-design-bot"}}