question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Package with electron command line switches

See original GitHub issue

EG: Electron supports passing flags to the JS-engine like:

$ electron --js-flags="--harmony_proxies --harmony_collections" your-app https://github.com/atom/electron/blob/master/docs/api/chrome-command-line-switches.md

Can I package my app so that when executed (EG: .exe) it runs with the flags?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
incacommented, Nov 10, 2016

This seems critical, b/c there is no other way to set -js-flags other than passing them to electron executable.

0reactions
maleptcommented, May 22, 2018

I found this while searching for “harmony” in the Electron repo: https://github.com/electron/electron/issues/10400

Although at this point, I’m curious what you’d need from the --harmony flag when Electron 2.0 uses Node 8.9.x.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Supported Command Line Switches - Electron
Command line switches supported by Electron. You can use app.commandLine.appendSwitch to append them in your app's main script before the ready event of...
Read more >
Command Line Arguments in ElectronJS - GeeksforGeeks
In Electron, the CommandLine property is used to read and manipulate the command-line arguments that Chromium reads and uses. They can be used ......
Read more >
How to pass command line argument in electron
1 Answer 1 · 1.In your main.js define a variable like global.sharedObject = {prop1: process.argv}; · 2.In your app just include remote and...
Read more >
Command Line Interface (CLI) - electron-builder
Without target configuration, electron-builder builds Electron app for current platform and current architecture using default target. macOS - DMG and ZIP for ...
Read more >
CLI - Electron Forge
Forge's CLI is the main way to run Electron Forge commands. It consists of a thin wrapper for its core API. Configuration for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found