Fix request module not found

This commit is contained in:
Samuel Elliott 2018-07-21 23:10:33 +01:00
parent 71c2d3aaad
commit 81e392c0f6
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ module.exports = {
util: 'require("util")',
process: 'require("process")',
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")'
},
resolve: {

View File

@ -38,7 +38,7 @@ module.exports = {
util: 'require("util")',
process: 'require("process")',
net: 'require("net")',
request: 'require.main.require("request")',
request: 'require(require("path").join(require("electron").remote.app.getAppPath(), "node_modules", "request"))',
sparkplug: 'require("./sparkplug")'
},
resolve: {