fix webpack issue with web3.js

This commit is contained in:
Iuri Matias 2019-08-21 12:05:34 -04:00
parent 79258d3a8d
commit 0ae7023c6b
1 changed files with 3 additions and 1 deletions

View File

@ -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"),