{"action":"created","issue":{"url":"https://api.github.com/repos/parcel-bundler/parcel/issues/188","repository_url":"https://api.github.com/repos/parcel-bundler/parcel","labels_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/188/comments","events_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/188/events","html_url":"https://github.com/parcel-bundler/parcel/issues/188","id":280791106,"number":188,"title":"File hash does not change after its content updates","user":{"login":"leeching","id":8462120,"avatar_url":"https://avatars0.githubusercontent.com/u/8462120?v=4","gravatar_id":"","url":"https://api.github.com/users/leeching","html_url":"https://github.com/leeching","followers_url":"https://api.github.com/users/leeching/followers","following_url":"https://api.github.com/users/leeching/following{/other_user}","gists_url":"https://api.github.com/users/leeching/gists{/gist_id}","starred_url":"https://api.github.com/users/leeching/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leeching/subscriptions","organizations_url":"https://api.github.com/users/leeching/orgs","repos_url":"https://api.github.com/users/leeching/repos","events_url":"https://api.github.com/users/leeching/events{/privacy}","received_events_url":"https://api.github.com/users/leeching/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-12-10T07:55:43Z","updated_at":"2017-12-11T05:09:59Z","closed_at":"2017-12-11T01:48:37Z","author_association":"NONE","body":"This is a 🐛 bug report.\r\n\r\n### 🤔 Expected Behavior\r\nAn output file hash should change when its content updates.\r\n\r\n### 😯 Current Behavior\r\nFile hash does not change.\r\n\r\n### 🔦 Context\r\n```\r\n<!-- index.html -->\r\n<html>\r\n<body>\r\n  <script src=\"./main.js\"></script>\r\n</body>\r\n</html>\r\n```\r\n```js\r\n// main.js\r\nconsole.log(1);\r\n```\r\n\r\nWhen build, 'b695675d84099f097ec37d68c8c83fce.js' generates.\r\n\r\n```bash\r\nparcel build --no-cache --no-minify index.html\r\n```\r\n\r\nAnd then, change main.js\r\n\r\n```js\r\n// main.js\r\nconsole.log(2);\r\n```\r\n\r\nBuild again.\r\n\r\n```bash\r\nparcel build --no-cache --no-minify index.html\r\n```\r\n\r\nThe javascript file name is still 'b695675d84099f097ec37d68c8c83fce.js'.\r\nI am not sure it is the expected behavior or not. However, when I using webpack, the output file hash will change every time its content updates.\r\n\r\n### 🌍 Your Environment\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n\r\n| Software         | Version(s)\r\n| ---------------- | ----------\r\n| Parcel           |  v1.1.0\r\n| Node             | v8.9.1\r\n| npm/Yarn         | yarn v1.3.2\r\n| Operating System | macOS High Sierra 10.13.1\r\n"},"comment":{"url":"https://api.github.com/repos/parcel-bundler/parcel/issues/comments/350623946","html_url":"https://github.com/parcel-bundler/parcel/issues/188#issuecomment-350623946","issue_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/188","id":350623946,"user":{"login":"sudhakar","id":6782,"avatar_url":"https://avatars1.githubusercontent.com/u/6782?v=4","gravatar_id":"","url":"https://api.github.com/users/sudhakar","html_url":"https://github.com/sudhakar","followers_url":"https://api.github.com/users/sudhakar/followers","following_url":"https://api.github.com/users/sudhakar/following{/other_user}","gists_url":"https://api.github.com/users/sudhakar/gists{/gist_id}","starred_url":"https://api.github.com/users/sudhakar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudhakar/subscriptions","organizations_url":"https://api.github.com/users/sudhakar/orgs","repos_url":"https://api.github.com/users/sudhakar/repos","events_url":"https://api.github.com/users/sudhakar/events{/privacy}","received_events_url":"https://api.github.com/users/sudhakar/received_events","type":"User","site_admin":false},"created_at":"2017-12-11T05:09:59Z","updated_at":"2017-12-11T05:09:59Z","author_association":"NONE","body":"yes @devongovett thats a good idea. But it would be extra configuration to achieve cache busting. I am happy with current setup for now. But IMO, its nice to have it in the core, so users get cache busting for free!"}}
{"actor":{"display_login":"sudhakar"}}