{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/117","repository_url":"https://api.github.com/repos/webpack/webpack-dev-server","labels_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/117/comments","events_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/117/events","html_url":"https://github.com/webpack/webpack-dev-server/issues/117","id":58884365,"number":117,"title":"TypeError due to assuming all <script> elements have a src attribute","user":{"login":"steveme","id":481857,"avatar_url":"https://avatars.githubusercontent.com/u/481857?v=3","gravatar_id":"","url":"https://api.github.com/users/steveme","html_url":"https://github.com/steveme","followers_url":"https://api.github.com/users/steveme/followers","following_url":"https://api.github.com/users/steveme/following{/other_user}","gists_url":"https://api.github.com/users/steveme/gists{/gist_id}","starred_url":"https://api.github.com/users/steveme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveme/subscriptions","organizations_url":"https://api.github.com/users/steveme/orgs","repos_url":"https://api.github.com/users/steveme/repos","events_url":"https://api.github.com/users/steveme/events{/privacy}","received_events_url":"https://api.github.com/users/steveme/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2015-02-25T10:58:47Z","updated_at":"2016-07-18T15:46:35Z","closed_at":null,"body":"Hi,\r\n\r\nAm seeing a lot of : \r\n```\r\nUncaught TypeError: Cannot read property 'replace' of null webpack-dev-server.js:1\r\n```\r\nWhich is from here:\r\nhttps://github.com/webpack/webpack-dev-server/blob/master/client/index.js#L5\r\n\r\nAs i've got script elements in my markup that don't have a src attribute.\r\n\r\nWe're using fluxible, so our HTML has inline state in a <script/> tag like: https://github.com/yahoo/flux-examples/blob/master/fluxible-router/components/Html.jsx\r\n\r\nThanks.\r\n\r\nSteve"},"comment":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/comments/233369211","html_url":"https://github.com/webpack/webpack-dev-server/issues/117#issuecomment-233369211","issue_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/117","id":233369211,"user":{"login":"brotzky","id":8007686,"avatar_url":"https://avatars.githubusercontent.com/u/8007686?v=3","gravatar_id":"","url":"https://api.github.com/users/brotzky","html_url":"https://github.com/brotzky","followers_url":"https://api.github.com/users/brotzky/followers","following_url":"https://api.github.com/users/brotzky/following{/other_user}","gists_url":"https://api.github.com/users/brotzky/gists{/gist_id}","starred_url":"https://api.github.com/users/brotzky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brotzky/subscriptions","organizations_url":"https://api.github.com/users/brotzky/orgs","repos_url":"https://api.github.com/users/brotzky/repos","events_url":"https://api.github.com/users/brotzky/events{/privacy}","received_events_url":"https://api.github.com/users/brotzky/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T15:46:34Z","updated_at":"2016-07-18T15:46:34Z","body":"@achimnol \r\n@Zache's solution is the simplest. We have a dev and prod index.html that has different 3rd party scripts in them (GTM, LiveChat, Polyfills/Shims, etc). Use the dev index.html in development and then point webpack at the production index.html when running a build. Proven to be the simplest solution for now."}}
{"actor":{"display_login":"brotzky"}}