File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed 
packages/schematics/src/collection/ng-add Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -165,14 +165,23 @@ function updateAngularCLIJson(options: Schema): Rule {
165165 ) 
166166 } ; 
167167
168-  buildConfig . configurations . production . fileReplacements  =  buildConfig . configurations . production . fileReplacements . map ( 
169-  replacement  =>  { 
170-  return  { 
171-  replace : convertPath ( options . name ,  replacement . replace ) , 
172-  with : convertPath ( options . name ,  replacement . with ) 
173-  } ; 
174-  } 
175-  ) ; 
168+  Object . keys ( buildConfig . configurations ) 
169+  . filter ( 
170+  configurationName  => 
171+  buildConfig . configurations [ configurationName ] . fileReplacements 
172+  ) 
173+  . forEach ( configurationName  =>  { 
174+  buildConfig . configurations [ 
175+  configurationName 
176+  ] . fileReplacements  =  buildConfig . configurations [ 
177+  configurationName 
178+  ] . fileReplacements . map ( replacement  =>  { 
179+  return  { 
180+  replace : convertPath ( options . name ,  replacement . replace ) , 
181+  with : convertPath ( options . name ,  replacement . with ) 
182+  } ; 
183+  } ) ; 
184+  } ) ; 
176185
177186 const  serveConfig  =  app . architect . serve ; 
178187
                                 You can’t perform that action at this time. 
               
                  
0 commit comments