electron-vite-react
electron-vite-react copied to clipboard
Run npm run dev under wayland with wayland flags
Hello,
I'm currently creating an electron based app under Wayland on Arch Linux.
Is there a way to start "npm run dev" with required flags for wayland?
Can do it after the build on the AppImage but not on Development.
Thanks.
I have the same problem. Is there any way to run the dev environment in native wayland?
You can pass electron flags into the dev
script.
For example,
"dev": "electron-vite dev -- --enable-features=UseOzonePlatform --ozone-platform=wayland",
This runs the development environment in native Wayland.
Linking the relevant section to the docs below
https://electron-vite.org/guide/dev#passing-arguments-to-electron-app