fix webpack issue with web3.js
This commit is contained in:
parent
79258d3a8d
commit
0ae7023c6b
|
@ -3,6 +3,7 @@ const path = require('path');
|
|||
const webConfig = {
|
||||
target: 'web',
|
||||
entry: path.join(__dirname, "src/index.js"),
|
||||
externals: ['electron'],
|
||||
output: {
|
||||
path: path.resolve(__dirname, "dist"),
|
||||
filename: 'browser.js',
|
||||
|
@ -17,6 +18,7 @@ const webConfig = {
|
|||
|
||||
const nodeConfig = {
|
||||
target: "node",
|
||||
externals: ['electron'],
|
||||
entry: path.join(__dirname, "src/eventSyncer.js"),
|
||||
output: {
|
||||
path: path.resolve(__dirname, "dist"),
|
||||
|
|
Loading…
Reference in New Issue