{"action":"created","issue":{"url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/381","repository_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin","labels_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/381/labels{/name}","comments_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/381/comments","events_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/381/events","html_url":"https://github.com/ampedandwired/html-webpack-plugin/issues/381","id":165269203,"number":381,"title":"Question: How do I inject scripts to head & body","user":{"login":"thevangelist","id":3482617,"avatar_url":"https://avatars.githubusercontent.com/u/3482617?v=3","gravatar_id":"","url":"https://api.github.com/users/thevangelist","html_url":"https://github.com/thevangelist","followers_url":"https://api.github.com/users/thevangelist/followers","following_url":"https://api.github.com/users/thevangelist/following{/other_user}","gists_url":"https://api.github.com/users/thevangelist/gists{/gist_id}","starred_url":"https://api.github.com/users/thevangelist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thevangelist/subscriptions","organizations_url":"https://api.github.com/users/thevangelist/orgs","repos_url":"https://api.github.com/users/thevangelist/repos","events_url":"https://api.github.com/users/thevangelist/events{/privacy}","received_events_url":"https://api.github.com/users/thevangelist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-13T08:50:23Z","updated_at":"2016-07-13T09:51:01Z","closed_at":null,"body":"I am using New Relic for monitoring, and my current bundle.js goes to body.\r\n\r\nHow can I inject my NR script to head?\r\n\r\n```    \r\nnew HtmlWebpackPlugin({\r\n   template: 'src/index.tpl.html',\r\n   inject: 'body',\r\n   filename: 'index.html',\r\n   favicon: 'src/images/favicon.png'\r\n})\r\n```\r\n```\r\n<!doctype html>\r\n<html lang=\"en\">\r\n  <head>\r\n    <meta charset=\"utf-8\">\r\n    <meta http-equiv=\"x-ua-compatible\" content=\"ie=edge\">\r\n    <title>Title</title>\r\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n  </head>\r\n  <body>\r\n    <div id=\"root\"></div>\r\n  </body>\r\n</html>\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/comments/232309606","html_url":"https://github.com/ampedandwired/html-webpack-plugin/issues/381#issuecomment-232309606","issue_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/381","id":232309606,"user":{"login":"antoligy","id":440052,"avatar_url":"https://avatars.githubusercontent.com/u/440052?v=3","gravatar_id":"","url":"https://api.github.com/users/antoligy","html_url":"https://github.com/antoligy","followers_url":"https://api.github.com/users/antoligy/followers","following_url":"https://api.github.com/users/antoligy/following{/other_user}","gists_url":"https://api.github.com/users/antoligy/gists{/gist_id}","starred_url":"https://api.github.com/users/antoligy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoligy/subscriptions","organizations_url":"https://api.github.com/users/antoligy/orgs","repos_url":"https://api.github.com/users/antoligy/repos","events_url":"https://api.github.com/users/antoligy/events{/privacy}","received_events_url":"https://api.github.com/users/antoligy/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T09:51:01Z","updated_at":"2016-07-13T09:51:01Z","body":"You should be able to specify `inject` as `head`, does that work?"}}
{"actor":{"display_login":"antoligy"}}