This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
let mainConfig = { | |
entry: { | |
main: path.join(__dirname, '../src/main/index.js') | |
}, | |
externals: [ | |
...Object.keys(dependencies || {}), | |
{'electron-debug': 'electron-debug'} | |
], | |
module: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
function createWindow () { | |
/** | |
* Initial window options | |
*/ | |
mainWindow = new BrowserWindow({ | |
height: 563, | |
useContentSize: true, | |
width: 1000, | |
webPreferences: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This file is used specifically and only for development. It installs | |
* `electron-debug` & `vue-devtools`. There shouldn't be any need to | |
* modify this file, but it can be used to extend your development | |
* environment. | |
*/ | |
/* eslint-disable */ | |
// Install `electron-debug` with `devtron` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
let mainWindow | |
const winURL = process.env.NODE_ENV === 'development' | |
? `http://localhost:9080` | |
: `file://${__dirname}/index.html` | |
function createWindow () { | |
/** | |
* Initial window options | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm audit --fix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install --save-dev [email protected] | |
npm install --save-dev [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package name: electron-with-vue (foi o valor padrão pra mim) | |
version: 1.0.0 (é o valor padrão) | |
description: A base Electron project using Vue.js | |
entry point: index.js (é o valor padrão) | |
test command: (deixei vazio) | |
git repository: (deixei vazio) | |
keywords: (deixei vazio) | |
author: gdonega | |
license: ISC (é o valor padrão) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "electron-with-vue", | |
"version": "1.0.0", | |
"description": "A base Electron project using Vue.js", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "gdonega", | |
"license": "ISC", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "electron-with-vue", | |
"version": "1.0.0", | |
"description": "A base Electron project using Vue.js", | |
"main": "app.main.js", | |
"scripts": { | |
"start": "electron ." | |
}, | |
"author": "gdonega", | |
"license": "ISC", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { app, BrowserWindow } = require('electron') | |
function createWindow () { | |
// Cria uma janela de navegação. | |
const win = new BrowserWindow({ | |
width: 800, | |
height: 600, | |
webPreferences: { | |
nodeIntegration: true | |
} |