Additional arguments when executing vite are lost
See original GitHub issueWhen executing yarn vite
with custom parameters, these are lost. Looking at the source code, electron is only launched with --no-sandbox
.
Is there a way to pass custom arguments to the electron application?
I want to be able to launch vite with: yarn vite -f ~/path/to/file
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
[proxy] Missing query parameters when Accept header is ...
Describe the bug I'm using a pretty simple proxy configuration with vite: const devBackend = 'http://localhost:8090' ... server: { port: ...
Read more >Building for Production - Vite
When it is time to deploy your app for production, simply run the vite build command. By default, it uses <root>/index.html as the...
Read more >Npm not running in terminal vite - Stack Overflow
Goto you project directory by cd your-project-name . run npm run dev command and try ... How to resolve npm run dev missing...
Read more >SyntaxError: missing ) after argument list - JavaScript | MDN
There is an error with how a function is called. This might be a typo, a missing operator, or an unescaped string, for...
Read more >How To Handle Command-line Arguments in Node.js Scripts
Command-line arguments are a way to provide additional input for ... At the very least, a script that's run without any arguments will...
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 FreeTop 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
Top GitHub Comments
You can try to custom start Electron https://github.com/electron-vite/vite-plugin-electron/blob/b0f2c9664530c1aa431ab2694fc01526d6dd5498/playground/usecase-in-main/vite.config.ts#L21-L32
About arguments, you can see 👉 https://www.electronjs.org/docs/latest/api/command-line#commandlineappendargumentvalue