{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/4921","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/4921/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/4921/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/4921/events","html_url":"https://github.com/angular/angular-cli/issues/4921","id":209455145,"number":4921,"title":"ng build --prod Mix Up The Page Style-Sheet","user":{"login":"Mage111","id":23486790,"avatar_url":"https://avatars.githubusercontent.com/u/23486790?v=3","gravatar_id":"","url":"https://api.github.com/users/Mage111","html_url":"https://github.com/Mage111","followers_url":"https://api.github.com/users/Mage111/followers","following_url":"https://api.github.com/users/Mage111/following{/other_user}","gists_url":"https://api.github.com/users/Mage111/gists{/gist_id}","starred_url":"https://api.github.com/users/Mage111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mage111/subscriptions","organizations_url":"https://api.github.com/users/Mage111/orgs","repos_url":"https://api.github.com/users/Mage111/repos","events_url":"https://api.github.com/users/Mage111/events{/privacy}","received_events_url":"https://api.github.com/users/Mage111/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-02-22T13:34:01Z","updated_at":"2017-02-23T10:47:22Z","closed_at":null,"body":"> Please provide us with the following information:\r\n> ---------------------------------------------------------------\r\n\r\n### OS?\r\nWindows 7, 8 or 10. \r\n\r\n\r\n### Versions.\r\n@angular/cli: 1.0.0-beta.32.3 [1.0.0-beta.15]\r\nnode: 6.9.5\r\nos: win32 x64\r\n@angular/common: 2.4.8\r\n@angular/compiler: 2.4.8\r\n@angular/compiler-cli: 2.4.8\r\n@angular/core: 2.4.8\r\n@angular/forms: 2.4.8\r\n@angular/http: 2.4.8\r\n@angular/platform-browser: 2.4.8\r\n@angular/platform-browser-dynamic: 2.4.8\r\n@angular/router: 3.4.8\r\n@angular/cli: 1.0.0-beta.32.3\r\n\r\n\r\n### Repro steps.\r\nUpgrade angular/cli version to latest. \r\n\r\n>------------------------------------------------------------------------\r\n The build works fine, but when I load the site, many of css declaration (not all of them) doesn't appear.\r\nI using scss files. and it seems that there is problem with the bundle creating.\r\n> Thanks! We'll be in touch soon.\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/281959230","html_url":"https://github.com/angular/angular-cli/issues/4921#issuecomment-281959230","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/4921","id":281959230,"user":{"login":"Mage111","id":23486790,"avatar_url":"https://avatars.githubusercontent.com/u/23486790?v=3","gravatar_id":"","url":"https://api.github.com/users/Mage111","html_url":"https://github.com/Mage111","followers_url":"https://api.github.com/users/Mage111/followers","following_url":"https://api.github.com/users/Mage111/following{/other_user}","gists_url":"https://api.github.com/users/Mage111/gists{/gist_id}","starred_url":"https://api.github.com/users/Mage111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mage111/subscriptions","organizations_url":"https://api.github.com/users/Mage111/orgs","repos_url":"https://api.github.com/users/Mage111/repos","events_url":"https://api.github.com/users/Mage111/events{/privacy}","received_events_url":"https://api.github.com/users/Mage111/received_events","type":"User","site_admin":false},"created_at":"2017-02-23T10:47:22Z","updated_at":"2017-02-23T10:47:22Z","body":"OK, I found the reason, Its a bug! \r\nIt happened because we moving the `ViewEncapsulation` from  each component to global declaration in `main.ts` file\r\nApparently` build --prod `do not support this option.\r\n\r\nIf I put the following code one time in main.ts- it doesn't work:\r\n`platformBrowserDynamic().bootstrapModule(AppModule, { defaultEncapsulation : ViewEncapsulation.None});`\r\nI must to write if for each component.\r\n"}}
{"actor":{"display_login":"Mage111"}}