Skip to content

Commit 7b3f40a

Browse files
author
Vlad Haidei
committed
reconfigure angular-cli and electron
1 parent e0ab90b commit 7b3f40a

File tree

5 files changed

+8469
-7609
lines changed

5 files changed

+8469
-7609
lines changed

angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"architect": {
1717
"build": {
18-
"builder": "angular-cli-builders:custom-webpack-browser",
18+
"builder": "@angular-builders/custom-webpack:browser",
1919
"options": {
2020
"customWebpackConfig": {
2121
"path": "./extra-webpack.config.js"

main.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ let serve: boolean = args.some(val => val === '--serve');
1010

1111
function createWindow() {
1212

13-
win = new BrowserWindow({width: 800, height: 600});
13+
win = new BrowserWindow({
14+
width: 800,
15+
height: 600,
16+
webPreferences: {
17+
nodeIntegration: true
18+
},
19+
});
1420

1521

1622
if (serve) {

0 commit comments

Comments
 (0)