diff --git a/electron-webpack-vuejs/.gitignore b/electron-webpack-vuejs/.gitignore index 53c37a1..0841ed3 100644 --- a/electron-webpack-vuejs/.gitignore +++ b/electron-webpack-vuejs/.gitignore @@ -1 +1,3 @@ -dist \ No newline at end of file +dist +node_modules +package-lock.json \ No newline at end of file diff --git a/electron-webpack-vuejs/package.json b/electron-webpack-vuejs/package.json index 33d539f..cd652ea 100644 --- a/electron-webpack-vuejs/package.json +++ b/electron-webpack-vuejs/package.json @@ -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 (http://dontkry.com)", "license": "MIT", diff --git a/electron-webpack-vuejs/src/main/index.js b/electron-webpack-vuejs/src/main/index.js index 374e69a..acd13a1 100644 --- a/electron-webpack-vuejs/src/main/index.js +++ b/electron-webpack-vuejs/src/main/index.js @@ -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}`)