File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
packages/ionic/src/lib/project/angular Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -111,16 +111,20 @@ class AngularBuildCLI extends BuildCLI<AngularBuildOptions> {
111
111
'cordova-assets' : options . cordovaAssets !== false ? undefined : 'false' ,
112
112
} ;
113
113
114
+ let separatedArgs = options [ '--' ] ;
115
+
114
116
if ( options . engine === 'cordova' ) {
115
117
const integration = await this . e . project . getIntegration ( 'cordova' ) ;
116
118
args . platform = options . platform ;
117
119
118
120
if ( this . e . project . directory !== integration . root ) {
119
121
args . cordovaBasePath = integration . root ;
120
122
}
123
+
124
+ separatedArgs = [ ] ;
121
125
}
122
126
123
- return [ ...unparseArgs ( args ) , ...options [ '--' ] ] ;
127
+ return [ ...unparseArgs ( args ) , ...separatedArgs ] ;
124
128
}
125
129
126
130
protected buildArchitectCommand ( options : AngularBuildOptions ) : string [ ] {
Original file line number Diff line number Diff line change @@ -142,16 +142,20 @@ export class AngularServeCLI extends ServeCLI<AngularServeOptions> {
142
142
'source-map' : options . sourcemaps !== false ? options . sourcemaps : 'false' ,
143
143
} ;
144
144
145
+ let separatedArgs = options [ '--' ] ;
146
+
145
147
if ( options . engine === 'cordova' ) {
146
148
const integration = await this . e . project . getIntegration ( 'cordova' ) ;
147
149
args . platform = options . platform ;
148
150
149
151
if ( this . e . project . directory !== integration . root ) {
150
152
args . cordovaBasePath = integration . root ;
151
153
}
154
+
155
+ separatedArgs = [ ] ;
152
156
}
153
157
154
- return [ ...unparseArgs ( args ) , ...options [ '--' ] ] ;
158
+ return [ ...unparseArgs ( args ) , ...separatedArgs ] ;
155
159
}
156
160
157
161
protected buildArchitectCommand ( options : AngularServeOptions ) : string [ ] {
You can’t perform that action at this time.
0 commit comments