mirror of
https://github.com/embarklabs/subspace.git
synced 2025-02-07 12:19:44 +00:00
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"),
|
||||
@ -26,4 +28,4 @@ const nodeConfig = {
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = [nodeConfig, webConfig];
|
||||
module.exports = [nodeConfig, webConfig];
|
||||
|
Loading…
x
Reference in New Issue
Block a user