question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Building dist bundle for production without building Electron app

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nklaymancommented, May 13, 2020

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 the linux-unpacked build. I will add a --onlyBundle flag but for now you can just use the workaround.

0reactions
nklaymancommented, May 13, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found