Fix request module not found
This commit is contained in:
parent
71c2d3aaad
commit
81e392c0f6
|
@ -37,7 +37,7 @@ module.exports = {
|
||||||
util: 'require("util")',
|
util: 'require("util")',
|
||||||
process: 'require("process")',
|
process: 'require("process")',
|
||||||
net: 'require("net")',
|
net: 'require("net")',
|
||||||
request: 'require.main.require("request")',
|
request: 'require(require("path").join(require("electron").remote.app.getAppPath(), "node_modules", "request"))',
|
||||||
sparkplug: 'require("../../core/dist/sparkplug")'
|
sparkplug: 'require("../../core/dist/sparkplug")'
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|
|
@ -38,7 +38,7 @@ module.exports = {
|
||||||
util: 'require("util")',
|
util: 'require("util")',
|
||||||
process: 'require("process")',
|
process: 'require("process")',
|
||||||
net: 'require("net")',
|
net: 'require("net")',
|
||||||
request: 'require.main.require("request")',
|
request: 'require(require("path").join(require("electron").remote.app.getAppPath(), "node_modules", "request"))',
|
||||||
sparkplug: 'require("./sparkplug")'
|
sparkplug: 'require("./sparkplug")'
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|
Loading…
Reference in New Issue