{"action":"created","issue":{"url":"https://api.github.com/repos/fuse-box/fuse-box/issues/104","repository_url":"https://api.github.com/repos/fuse-box/fuse-box","labels_url":"https://api.github.com/repos/fuse-box/fuse-box/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/fuse-box/fuse-box/issues/104/comments","events_url":"https://api.github.com/repos/fuse-box/fuse-box/issues/104/events","html_url":"https://github.com/fuse-box/fuse-box/issues/104","id":206612980,"number":104,"title":"Support for content hash in output filename","user":{"login":"CreepGin","id":666527,"avatar_url":"https://avatars.githubusercontent.com/u/666527?v=3","gravatar_id":"","url":"https://api.github.com/users/CreepGin","html_url":"https://github.com/CreepGin","followers_url":"https://api.github.com/users/CreepGin/followers","following_url":"https://api.github.com/users/CreepGin/following{/other_user}","gists_url":"https://api.github.com/users/CreepGin/gists{/gist_id}","starred_url":"https://api.github.com/users/CreepGin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CreepGin/subscriptions","organizations_url":"https://api.github.com/users/CreepGin/orgs","repos_url":"https://api.github.com/users/CreepGin/repos","events_url":"https://api.github.com/users/CreepGin/events{/privacy}","received_events_url":"https://api.github.com/users/CreepGin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-09T19:56:25Z","updated_at":"2017-02-09T20:20:32Z","closed_at":null,"body":"Webpack supports special keywords in the output filename. \r\n\r\n```\r\noutput: {\r\n    path: \"./public/build\",\r\n    filename: PRODUCTION ? \"[name]___[chunkhash].script.min.js\" : \"[name].script.js\"\r\n},\r\n```\r\n\r\nAmong other things, this is most often used for asset cache busting. However the webpack way may be a bit too free-form. So in FuseBox, why not just assume this behavior upon a boolean flag or when `NODE_ENV === \"production\"`.\r\n\r\n```\r\nfilenameHash: true\r\n```\r\n\r\nor just with\r\n\r\n```\r\nfsbx.EnvPlugin({ NODE_ENV: “production\" })\r\n```"},"comment":{"url":"https://api.github.com/repos/fuse-box/fuse-box/issues/comments/278761053","html_url":"https://github.com/fuse-box/fuse-box/issues/104#issuecomment-278761053","issue_url":"https://api.github.com/repos/fuse-box/fuse-box/issues/104","id":278761053,"user":{"login":"unlight","id":301732,"avatar_url":"https://avatars.githubusercontent.com/u/301732?v=3","gravatar_id":"","url":"https://api.github.com/users/unlight","html_url":"https://github.com/unlight","followers_url":"https://api.github.com/users/unlight/followers","following_url":"https://api.github.com/users/unlight/following{/other_user}","gists_url":"https://api.github.com/users/unlight/gists{/gist_id}","starred_url":"https://api.github.com/users/unlight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unlight/subscriptions","organizations_url":"https://api.github.com/users/unlight/orgs","repos_url":"https://api.github.com/users/unlight/repos","events_url":"https://api.github.com/users/unlight/events{/privacy}","received_events_url":"https://api.github.com/users/unlight/received_events","type":"User","site_admin":false},"created_at":"2017-02-09T20:20:32Z","updated_at":"2017-02-09T20:20:32Z","body":"My requirements to hashify\r\n1. Should not depends on other plugins (env plugin, etc.)\r\n2. Allow to specify custom value (I want include version number)\r\n3. Do hashify for ALL output files including js, css, images\r\n4. Dynamic import should respect hash option"}}
{"actor":{"display_login":"unlight"}}