Package with electron command line switches
See original GitHub issueEG: 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:
- Created 8 years ago
- Reactions:1
- Comments:13 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This seems critical, b/c there is no other way to set
-js-flags
other than passing them toelectron
executable.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.