File tree 1 file changed +17
-8
lines changed
packages/schematics/src/collection/ng-add
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 {
165
165
)
166
166
} ;
167
167
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
+ } ) ;
176
185
177
186
const serveConfig = app . architect . serve ;
178
187
You can’t perform that action at this time.
0 commit comments