forward the CLI user arguments to cordova-serve/browser
Feature Request
Motivation Behind Feature
I'm trying to pass --allow-file-access-from-files --disable-web-security to chromium, and it seems that cordova-serve/src/browser and callers are dropping the command line arguments.
Where should I forward this feature request? Thanks!
Feature Description
Forward the CLI user arguments to cordova-serve/src/browser from cordova-browser:
return server.launchBrowser({
target: args.target,
url: projectUrl,
userArgs: args.remain
});
Then pass these arguments to the browser during launch in cordova-serve/src/browser
module.exports = function (opts) {
var userArgs = opts.userArgs || '';
/* ... */
function getBrowser (target, dataDir, userArgs) {
/* ... */
}
Alternatives or Workarounds
Launch chrome manually and let the default instance handle local host launching
Is this implemented already ?
yes, I can send a merge request!
@Max104t This looks like a good change. It would be nice if you could submit a pull request with your commit as it looks well done.
My account is locked.. please feel free to fork and merge my branch..
I've gone ahead and created #42 while retaining your original commit.