Skip to content

Commit

Permalink
Merge pull request #27 from chuckb/master
Browse files Browse the repository at this point in the history
Mac and node fixes
  • Loading branch information
shama authored Nov 6, 2019
2 parents 4452d93 + b47b31e commit 3102a79
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion electron-webpack-vuejs/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
dist
dist
node_modules
package-lock.json
2 changes: 1 addition & 1 deletion electron-webpack-vuejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"start": "electron-webpack dev",
"build": "electron-webpack && electron-builder"
"build": "electron-webpack && electron-builder -c.mac.identity=null"
},
"author": "Kyle Robinson Young <kyle@dontkry.com> (http://dontkry.com)",
"license": "MIT",
Expand Down
5 changes: 4 additions & 1 deletion electron-webpack-vuejs/src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ const isDevelopment = process.env.NODE_ENV !== 'production'

app.on('ready', () => {
let window = new BrowserWindow({
width: 1024
width: 1024,
webPreferences: {
nodeIntegration: true
}
})
if (isDevelopment) {
window.loadURL(`http://localhost:${process.env.ELECTRON_WEBPACK_WDS_PORT}`)
Expand Down

0 comments on commit 3102a79

Please sign in to comment.