Building dist bundle for production without building Electron app
See original GitHub issueDescribe the bug
When I run npm run electron:build --legacy --mac
, the plugin creates a wonderfully operational /dist_electron/bundled
folder, which works with CORS and remote execution from Electron.
However, when I run npm run build
or vue-cli-service build
, the bundled files contain errors related to fs
.
I’d really love to see a npm run electron:build --bundle-only
command. And in the meantime, if possible, some workaround.
Thank you so much for this life-saving project.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
A Comprehensive Guide to Building and Packaging an ...
The pack script will build unpackaged versions of your app, just as electron-packager does. The dist script will build the distribution version ...
Read more >Building a production electron/create-react-app application ...
In this tutorial, I will cover how to create an electron/create-react-app application with a shared codebase, build it, and package it for ...
Read more >Application Packaging
To distribute your app with Electron, you need to package and rebrand it. To do this, you can either use specialized tooling or...
Read more >Common Configuration
in the package.json file of your project using the build key on the top level: ... electronDist String | module:app-builder-lib/out/configuration.
Read more >Creating an Electron application from scratch
Webpack has a concept of an entry point, which is where Webpack starts looking for dependencies that it then bundles together. Our entry...
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
If you use
npm run electron:build -- --linux dir
it should only take a few seconds extra to build since it only needs to create thelinux-unpacked
build. I will add a--onlyBundle
flag but for now you can just use the workaround.I don’t think I’ll add a flag as the use case is pretty rare and all it will save is a few seconds. If you are happy with the current solution then I will leave it as is.