Fix npm run build when using webpack 1.12.15

'remote' module is used in electron-connect but it's removed from electron target on webpack 1.12.15.
So define 'remote' as "externals" to avoid bundling error.

http://webpack.github.io/docs/configuration.html#externals
This commit is contained in:
Yuya Ochiai
2016-04-13 23:34:50 +09:00
parent 0f89418fb0
commit cc2d65c741
2 changed files with 7 additions and 3 deletions

View File

@@ -30,7 +30,7 @@
"babel-preset-react": "^6.3.13",
"chromedriver": "^2.20.0",
"del": "^2.2.0",
"electron-connect": "^0.3.3",
"electron-connect": "^0.3.7",
"electron-packager": "^5.1.0",
"electron-prebuilt": "0.36.11",
"esformatter": "^0.8.1",
@@ -48,6 +48,7 @@
"through2": "^2.0.1",
"vinyl-named": "^1.1.0",
"webdriverio": "^3.3.0",
"webpack": "^1.12.15",
"webpack-stream": "^3.1.0"
}
}