File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 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) => {
118118 env = flags . reduce ( addOption , { } ) ;
119119 // console.log('env - ', env);
120120
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' ) ) ;
122122 // console.log('platform - ', platform);
123123
124124 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!');
126129 }
127130
128131 const projectRoot = api . service . context ;
You can’t perform that action at this time.
0 commit comments