{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/27022","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/27022/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/27022/comments","events_url":"https://api.github.com/repos/angular/angular/issues/27022/events","html_url":"https://github.com/angular/angular/issues/27022","id":379084678,"node_id":"MDU6SXNzdWUzNzkwODQ2Nzg=","number":27022,"title":"Assets with the same name but different path are copied over each other","user":{"login":"Roaders","id":10414642,"node_id":"MDQ6VXNlcjEwNDE0NjQy","avatar_url":"https://avatars0.githubusercontent.com/u/10414642?v=4","gravatar_id":"","url":"https://api.github.com/users/Roaders","html_url":"https://github.com/Roaders","followers_url":"https://api.github.com/users/Roaders/followers","following_url":"https://api.github.com/users/Roaders/following{/other_user}","gists_url":"https://api.github.com/users/Roaders/gists{/gist_id}","starred_url":"https://api.github.com/users/Roaders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roaders/subscriptions","organizations_url":"https://api.github.com/users/Roaders/orgs","repos_url":"https://api.github.com/users/Roaders/repos","events_url":"https://api.github.com/users/Roaders/events{/privacy}","received_events_url":"https://api.github.com/users/Roaders/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-09T09:26:51Z","updated_at":"2018-11-09T10:12:16Z","closed_at":"2018-11-09T10:12:16Z","author_association":"NONE","body":"<!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅\r\n\r\nOh hi there! 😄 \r\n\r\nTo expedite issue processing please search open and closed issues before submitting a new one.\r\nExisting issues often contain information about workarounds, resolution, or progress updates.\r\n\r\n🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->\r\n\r\n# 🐞 bug report\r\n\r\n### Description\r\n\r\nAssets with the same name but a different path are copied over each other when doing a build with output hashing turned off.\r\n\r\n## 🔬 Minimal Reproduction\r\nWith this scss file:\r\n\r\n```\r\n.dark{\r\n    background-image: url(\"../assets/images/dark/ms_logo.png\");\r\n}\r\n\r\n.light{\r\n    background-image: url(\"../assets/images/light/ms_logo.png\");\r\n}\r\n```\r\nboth images will be copied to the output directory with the same name so you only get the dark or light logo that will be used in both cases.\r\nTurning on output hashing will fix this as you will get two logos with different hashes.\r\n\r\n\r\n## 🌍  Your Environment\r\n\r\n**Angular Version:**\r\n```\r\n     _                      _                 ____ _     ___\r\n    / \\   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|\r\n   / △ \\ | '_ \\ / _` | | | | |/ _` | '__|   | |   | |    | |\r\n  / ___ \\| | | | (_| | |_| | | (_| | |      | |___| |___ | |\r\n /_/   \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_|       \\____|_____|___|\r\n                |___/\r\n\r\n\r\nAngular CLI: 7.0.2\r\nNode: 8.11.1\r\nOS: win32 x64\r\nAngular: 7.0.0\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... http, language-service, platform-browser\r\n... platform-browser-dynamic, router\r\n\r\nPackage                           Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect         0.10.2\r\n@angular-devkit/build-angular     0.10.2\r\n@angular-devkit/build-optimizer   0.10.2\r\n@angular-devkit/build-webpack     0.10.2\r\n@angular-devkit/core              7.0.2\r\n@angular-devkit/schematics        7.0.2\r\n@angular/cli                      7.0.2\r\n@ngtools/webpack                  7.0.2\r\n@schematics/angular               7.0.2\r\n@schematics/update                0.10.2\r\nrxjs                              6.3.3\r\ntypescript                        3.1.4\r\nwebpack                           4.19.1\r\n```\r\n\r\nNote: I'm unable to create a demo github repo as I am currently on a chromebook and my development PC is locked down and can't access github\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/437313356","html_url":"https://github.com/angular/angular/issues/27022#issuecomment-437313356","issue_url":"https://api.github.com/repos/angular/angular/issues/27022","id":437313356,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzMxMzM1Ng==","user":{"login":"gkalpak","id":8604205,"node_id":"MDQ6VXNlcjg2MDQyMDU=","avatar_url":"https://avatars2.githubusercontent.com/u/8604205?v=4","gravatar_id":"","url":"https://api.github.com/users/gkalpak","html_url":"https://github.com/gkalpak","followers_url":"https://api.github.com/users/gkalpak/followers","following_url":"https://api.github.com/users/gkalpak/following{/other_user}","gists_url":"https://api.github.com/users/gkalpak/gists{/gist_id}","starred_url":"https://api.github.com/users/gkalpak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkalpak/subscriptions","organizations_url":"https://api.github.com/users/gkalpak/orgs","repos_url":"https://api.github.com/users/gkalpak/repos","events_url":"https://api.github.com/users/gkalpak/events{/privacy}","received_events_url":"https://api.github.com/users/gkalpak/received_events","type":"User","site_admin":false},"created_at":"2018-11-09T10:12:16Z","updated_at":"2018-11-09T10:12:16Z","author_association":"MEMBER","body":"Can you, please, open an issue on the [cli repo][1] instead?\r\n\r\n[1]: https://github.com/angular/angular-cli/issues"}}
{"actor":{"display_login":"gkalpak"}}