using browserify with electron
See original GitHub issueI’m building react based desktop pplication with github electron. Electron allow to use node.js features in browser code. However I still need browserify for compile react files.
The issue is that with standard browserify policies node code goes invalid. require
no longer work as expected, __filename
and __dirname
start showing things which is not close to ‘on-disk’ reality, etc.
Is there is any kind of vision how it’s possible to friend electron with browserify?
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
blahah/electron-renderify: Browserify transform to ... - GitHub
Browserify transform to allow bundling for Electron renderer processes. Prefix calls to require as window.require for node and electron built-in modules. This ...
Read more >node.js - browserify bundle electron app main process file
I am building a electron app and currently using browserify for the renderer (web page) files like any other javascript front end.
Read more >Electron Adventures: Episode 48: path-browserify
path-browserify. Backend JavaScript has path module which handles common path manipulation, but browser APIs have nothing like it. Fortunately ...
Read more >So the next step would be to write "electron-browserify.js ...
I can't really remember who but some months ago a coding scratchpad website launched full virtualized Linux environments in the browser through WASM,...
Read more >Browserify
Bundle up your first module ... Browsers don't have the require method defined, but Node.js does. With Browserify you can write code that...
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 FreeTop 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
Top GitHub Comments
Error thrown when trying this when using browserify+vue on my app.js:
http://maxgfeller.com/blog/2016/08/30/electron-browserify/