Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command Line Arguments in Dev Mode #581

Closed
jeeftor opened this issue Apr 9, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@jeeftor
Copy link
Contributor

commented Apr 9, 2018

Found an issue or bug with electron-vue? Tell me all about it!

Questions regarding how to use electron or vue are likely to be closed as they are not direct issues with this boilerplate. Please seek solutions from official documentation or their respective communities.

Describe the issue / bug.

I'm a little confused as how to pass in command line arguments when using yarn dev run. I'm able to pass them into node .electron-vue/dev-runner.js

~/devel/surveysa/templated/surveysa-client ❯❯❯ yarn dev run -- --arg1 develop ✱ ◼
yarn run v1.5.1
warning package.json: No license field
warning ../../../../package.json: No license field
warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.
$ node .electron-vue/dev-runner.js run --arg1

But they dont appear to be available in electron. I'm trying to access them via: console.error('CommandLineARgs', process.argv)

Is there guidance on how to pass these all the way into electron when running in dev mode?

@jeeftor

This comment has been minimized.

Copy link
Contributor Author

commented Apr 9, 2018

I found out how to do this and submitted a patch #582

@jeeftor jeeftor closed this Apr 9, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.