m0dch3n / vue-cli-plugin-cordova

Vue Cli 3 Cordova Plugin
MIT License
417 stars 63 forks source link

How to specify device target #75

Closed stephanedemotte closed 5 years ago

stephanedemotte commented 5 years ago

Hello, i want to specify a device target but i don't find how.

I've succeed with cordova with cordova run ios --target="iPad-Air" but the livereload don't work.

An idea ?

Thanks !!

m0dch3n commented 5 years ago

please search for build.json

m0dch3n commented 5 years ago

basically the problem is, that current params are passed to the vue-cli serve command, and not to the cordova app.

it's possible to change this behaviour, but then all params are passed to cordova command, and if you want to parametize your vue-cli command, you need to adapt vue.config.js

There is still an open discussion about this

iKnowMagic commented 4 years ago

I created a small fix to address this issue. See #102

m0dch3n commented 4 years ago

I think target will not be used by vue cli, so I'm ok with this