Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

Command Line Arguments in Dev Mode #581

Description

@jeeftor

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions