{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/11451","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/11451/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/11451/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/11451/events","html_url":"https://github.com/angular/angular-cli/issues/11451","id":338279735,"node_id":"MDU6SXNzdWUzMzgyNzk3MzU=","number":11451,"title":"fileReplacements doesn't work with css files","user":{"login":"Lionardo","id":3526524,"node_id":"MDQ6VXNlcjM1MjY1MjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/3526524?v=4","gravatar_id":"","url":"https://api.github.com/users/Lionardo","html_url":"https://github.com/Lionardo","followers_url":"https://api.github.com/users/Lionardo/followers","following_url":"https://api.github.com/users/Lionardo/following{/other_user}","gists_url":"https://api.github.com/users/Lionardo/gists{/gist_id}","starred_url":"https://api.github.com/users/Lionardo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lionardo/subscriptions","organizations_url":"https://api.github.com/users/Lionardo/orgs","repos_url":"https://api.github.com/users/Lionardo/repos","events_url":"https://api.github.com/users/Lionardo/events{/privacy}","received_events_url":"https://api.github.com/users/Lionardo/received_events","type":"User","site_admin":false},"labels":[{"id":957896443,"node_id":"MDU6TGFiZWw5NTc4OTY0NDM=","url":"https://api.github.com/repos/angular/angular-cli/labels/comp:%20devkit/build-angular","name":"comp: devkit/build-angular","color":"c5def5","default":false},{"id":531674830,"node_id":"MDU6TGFiZWw1MzE2NzQ4MzA=","url":"https://api.github.com/repos/angular/angular-cli/labels/freq1:%20low","name":"freq1: low","color":"fbca04","default":false},{"id":531675405,"node_id":"MDU6TGFiZWw1MzE2NzU0MDU=","url":"https://api.github.com/repos/angular/angular-cli/labels/severity3:%20broken","name":"severity3: broken","color":"5319e7","default":false},{"id":220593710,"node_id":"MDU6TGFiZWwyMjA1OTM3MTA=","url":"https://api.github.com/repos/angular/angular-cli/labels/type:%20bug","name":"type: bug","color":"EEEEEE","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-04T13:37:06Z","updated_at":"2018-07-27T17:06:46Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION YOUR ISSUE MIGHT BE CLOSED WITHOUT INVESTIGATING\r\n-->\r\n### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n### Area\r\n```\r\n- [x] devkit\r\n- [ ] schematics\r\n```\r\n\r\n### Versions\r\n<!--\r\nOutput from: `node --version` and `npm --version`.\r\n  Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra? High Sierra?)\r\n-->\r\nnode --version: v9.4.0\r\nnpm --version: 5.6.0\r\nmacOS high sierra 10.13.5\r\n\r\n### Repro steps\r\n<!--\r\nSimple steps to reproduce this bug.\r\nPlease include: commands run, packages added, related code changes.\r\nA link to a sample repo would help too.\r\n-->\r\n1- In angular.json add a new configuration and try to replace a css file.\r\n2- add a simple background style to header.local.css\r\n3- import the header.css file into styles.scss\r\n\r\nE.g.\r\n```json          \r\n\"configurations\": {\r\n            \"local\": {              \r\n              \"optimization\": false,\r\n              \"outputHashing\": \"all\",\r\n              \"sourceMap\": false,\r\n              \"extractCss\": true,\r\n              \"namedChunks\": false,\r\n              \"aot\": true,\r\n              \"extractLicenses\": false,\r\n              \"vendorChunk\": false,\r\n              \"buildOptimizer\": false,\r\n              \"fileReplacements\": [\r\n                {\r\n                  \"replace\": \"src/environments/environment.ts\",\r\n                  \"with\": \"src/environments/enviroment.local.ts\"\r\n                },\r\n                {\r\n                  \"replace\": \"src/css/header.css\",\r\n                  \"with\": \"src/css/header.local.css\"\r\n                }\r\n              ]\r\n            },\r\n```\r\n\r\n\r\n### The log given by the failure\r\n<!-- Normally this include a stack trace and some more information. -->\r\nnone\r\n\r\n### Desired functionality\r\n<!--\r\nWhat would like to see implemented?\r\nWhat is the usecase?\r\n-->\r\nget the  header.css\r\nreplaced by  header.local.css\r\n\r\n### Mention any other details that might be useful\r\n<!-- Please include a link to the repo if this is related to an OSS project. -->\r\nTested with angular cli version 6.0.1 and angular cli version 6.1.0-beta.0"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/408480680","html_url":"https://github.com/angular/angular-cli/issues/11451#issuecomment-408480680","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/11451","id":408480680,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODQ4MDY4MA==","user":{"login":"wctiger","id":7061370,"node_id":"MDQ6VXNlcjcwNjEzNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/7061370?v=4","gravatar_id":"","url":"https://api.github.com/users/wctiger","html_url":"https://github.com/wctiger","followers_url":"https://api.github.com/users/wctiger/followers","following_url":"https://api.github.com/users/wctiger/following{/other_user}","gists_url":"https://api.github.com/users/wctiger/gists{/gist_id}","starred_url":"https://api.github.com/users/wctiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wctiger/subscriptions","organizations_url":"https://api.github.com/users/wctiger/orgs","repos_url":"https://api.github.com/users/wctiger/repos","events_url":"https://api.github.com/users/wctiger/events{/privacy}","received_events_url":"https://api.github.com/users/wctiger/received_events","type":"User","site_admin":false},"created_at":"2018-07-27T17:06:46Z","updated_at":"2018-07-27T17:06:46Z","author_association":"NONE","body":"I have updated my angular/cli to version 6.1.1 and angular-devkit/build-angular to version 0.7.1.\r\nI see ng-build started to replace html files. However it is still not replacing scss files.\r\n My configuration looks like this: \r\n `\"test\": {\r\n              \"fileReplacements\": [\r\n                {\r\n                  \"replace\": \"src/index.html\",\r\n                  \"with\": \"src/index_test.html\"\r\n                },\r\n                {\r\n                  \"replace\": \"src/scss/base/_variables.scss\",\r\n                  \"with\": \"src/scss/themes/_dark.scss\"\r\n                }\r\n              ],\r\n              \"optimization\": true,\r\n              \"outputHashing\": \"all\",\r\n              \"sourceMap\": true,\r\n              \"extractCss\": true,\r\n              \"namedChunks\": false,\r\n              \"aot\": false,\r\n              \"extractLicenses\": true,\r\n              \"vendorChunk\": false,\r\n              \"buildOptimizer\": false\r\n            }`"}}
{"actor":{"display_login":"wctiger"}}