450 questions
Score of 0
0 answers
76 views
Using Dotenvx with Electron, Electron Forge, & Webpack
I am trying to decrypt and import my env variables with Dotenvx. Previously we were using the traditional dotenv package which all worked. We want to switch to dotenvx for the encryption capabilities ...
Score of 3
0 answers
182 views
Embedded static build in iframe (Electron Forge + Vite)
In principle, all I'm looking to accomplish is embed a static build of a web app into an electron powered vite app.
Context
== File Structure ==
- public/
| - static_build/
| - index.html
| - ...
...
Tooling
1
vote
5
replies
219
views
Large build size for Electron app using vite and electron-builder due to node_modules
I have an Electron app that I build using webpack + electron-forge. I consider to migrate to vite + electron-builder. The migration succeeded quite smoothly, and dev experience with vite is way better ...
Score of 0
1 answer
89 views
How can I import React components in an Electron app?
I am trying to import a React component Menu.jsx from App.jsx in my Electron app. No errors are showing up, but nothing is being rendered and are not added to the DOM (the body is empty when I looked ...
Score of 0
0 answers
76 views
Issue with electron forge
I am building an electron app with preact + typescript with vite tool.
below is my vite config
import { resolve } from 'path'
import obfuscatorPlugin from "vite-plugin-javascript-obfuscator";...
Score of 0
0 answers
41 views
Electron PDF download button doesn't work
I'm using electron as browser to load remote pages, when I open a PDF the default PDF viewer is opened but the file download button doesn't work and doesn't throw any error:
This is the package ...
Score of 0
1 answer
64 views
how to insert a command-line program in the package
I have a command-line program, say "myprogram.exe" installed in the resources directory of my nodejs-electron application.
I run my electron application via "npm start" with no ...
Score of 1
1 answer
408 views
How to properly include SQLite3 with an Electron, Electron Forge, Sequelizer set-up in production?
I've been trying to set-up a working Electron application using Electron Forge with Sqlite3 and Sequelize. This has worked great up until where I need to actually build and package, and distribute the ...
Score of 0
0 answers
69 views
Can the electron-forge packaging entry point be configured dynamically?
We are building an Electron application, and we are using Electron Forge to do the build. But we have the requirement of having different builds with different capabilities, although a lot of the ...
Score of 2
2 answers
136 views
How to disable Electron.js panel window movable area click event on macOS?
In Electron.js, a panel type Browser window has an approximately 28-pixel top area that acts as a moveable area. Clicking in this area focuses the application, bringing the app menu to the top taskbar,...
Score of 1
0 answers
89 views
Is there a way to get normal output from electron-forge commands?
We have recently added some Electron apps into our application suite, and these are being packaged up with the command electron-forge package.
Unfortunately, it looks like that command is doing all ...
Score of 0
1 answer
126 views
How do I import js files in a worker_thread when using Webpack and Electron Forge?
Electron Forge and Webpack cannot do worker_threads if the worker imports something.
We'd want to do this to do heavy computation without blocking the main thread, allowing the UI to remain responsive....
Score of 3
2 answers
1650 views
Cannot find module 'better-sqlite3' after building Electron Forge Vite app (on Linux)
I'm trying to develop an Electron Forge Vite app that uses better-sqlite3 as database. It works fine in development environment but after I build a .deb package to test it outside development (I'm on ...
Score of 1
1 answer
50 views
File path ignoring variable value during resolution with webpack
I have a switch statement that selects a file. Webpack always sets the file to the wrong file on Linux.
The code below is the code that sets the file.path
let libDir = ''
let libName = ''
switch (...
Score of 3
1 answer
384 views
Error packaging electron app that uses local files
I created an App using electron that interacts with local files using IPC. When i run it using npm start, éverything works as excpected, but when i try to package the app into an .exe file using the ...