{"action":"created","issue":{"url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/143","repository_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin","labels_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/143/comments","events_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/143/events","html_url":"https://github.com/ampedandwired/html-webpack-plugin/issues/143","id":122273267,"number":143,"title":"Inject Webpack Manifest","user":{"login":"cnatis","id":9272452,"avatar_url":"https://avatars.githubusercontent.com/u/9272452?v=3","gravatar_id":"","url":"https://api.github.com/users/cnatis","html_url":"https://github.com/cnatis","followers_url":"https://api.github.com/users/cnatis/followers","following_url":"https://api.github.com/users/cnatis/following{/other_user}","gists_url":"https://api.github.com/users/cnatis/gists{/gist_id}","starred_url":"https://api.github.com/users/cnatis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnatis/subscriptions","organizations_url":"https://api.github.com/users/cnatis/orgs","repos_url":"https://api.github.com/users/cnatis/repos","events_url":"https://api.github.com/users/cnatis/events{/privacy}","received_events_url":"https://api.github.com/users/cnatis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-12-15T13:31:40Z","updated_at":"2016-05-19T05:17:32Z","closed_at":"2016-03-23T09:12:38Z","body":"After looking through the code it looks like it would not be extremely hard to add this functionality. What it would do is extract the chunk manifest from the webpack stats and insert it into the HTML with a given variable name, and then removed from the bootstrap entry chunk to allow for long term caching of assets.\r\n\r\nSee https://github.com/diurnalist/chunk-manifest-webpack-plugin for how to extract the correct data and how to remove the manifest from the entry chunk.\r\n\r\nThe reason I don't use the existing plugin is due to the fact that I need to add the manifest manually after each build. I feel this goes hand in hand with the html-webpack-plugin because now I can inject my hashed chunks and the manifest which will allow me to cache my chunks and only bust the cache for chunks that have changed instead of busting the cache for the entry chunk every time as it contains the manifest."},"comment":{"url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/comments/220229751","html_url":"https://github.com/ampedandwired/html-webpack-plugin/issues/143#issuecomment-220229751","issue_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/143","id":220229751,"user":{"login":"szrenwei","id":4375231,"avatar_url":"https://avatars.githubusercontent.com/u/4375231?v=3","gravatar_id":"","url":"https://api.github.com/users/szrenwei","html_url":"https://github.com/szrenwei","followers_url":"https://api.github.com/users/szrenwei/followers","following_url":"https://api.github.com/users/szrenwei/following{/other_user}","gists_url":"https://api.github.com/users/szrenwei/gists{/gist_id}","starred_url":"https://api.github.com/users/szrenwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szrenwei/subscriptions","organizations_url":"https://api.github.com/users/szrenwei/orgs","repos_url":"https://api.github.com/users/szrenwei/repos","events_url":"https://api.github.com/users/szrenwei/events{/privacy}","received_events_url":"https://api.github.com/users/szrenwei/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T05:17:32Z","updated_at":"2016-05-19T05:17:32Z","body":"@jantimon try to use [Inline Manifest Webpack Plugin](https://github.com/szrenwei/inline-manifest-webpack-plugin)"}}