-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script files don't work with Browserify (they aren't automatically embedded) #29
Comments
Can you explain why you need to browserify for electron? In any case, this is a tooling problem. Not for
|
Two things: First, I'm using Additionally, even if it wasn't browserified, the app is packaged into an I'm learning about the challenges and alternatives as I investigate this issue, so I might be completely missing an obvious solution. |
As it is, you're gonna have to extract those files. I haven't had the time to finish it, but the next version of
(I don't want to do this by default). |
And additionally, when browserifying, use a custom value for |
win-detect-browsers
invokes two scripts at runtime to find browser information:regListStream.wsf
andstream.wsf
. You can see one of these used here.browserify
works by taking a bunch of JS and putting it into a single bundle. However, external files aren't automatically bundled. It looks like they can be, though.So, any browserify'd apps that are using
win-detect-browsers
won't work at runtime on other computers. However, unless__dirname
is replaced, they will appear to work on development machines. This actually dinged us for our Electron app, James.The text was updated successfully, but these errors were encountered: