File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -118,11 +118,14 @@ module.exports = (api, projectOptions) => {
118
118
env = flags . reduce ( addOption , { } ) ;
119
119
// console.log('env - ', env);
120
120
121
- const platform = env && ( ( env . android && 'android' ) || ( env . ios && 'ios' ) || ( env . web && 'web' ) ) ;
121
+ let platform = env && ( ( env . android && 'android' ) || ( env . ios && 'ios' ) || ( env . web && 'web' ) ) ;
122
122
// console.log('platform - ', platform);
123
123
124
124
if ( ! platform ) {
125
- throw new Error ( 'You need to provide a target platform!' ) ;
125
+ // TNS (iOS/Android) always sets platform, so assume platform = 'web' & Vue-CLI glitch of loosing .env options in the UI
126
+ platform = 'web' ;
127
+ // --> TO BE DELETED SOON
128
+ // throw new Error('You need to provide a target platform!');
126
129
}
127
130
128
131
const projectRoot = api . service . context ;
You can’t perform that action at this time.
0 commit comments