Override webpack configuration

This commit is contained in:
Maxime GRIS
2017-04-12 18:07:04 +02:00
parent 6ceb0f2a10
commit 60d6116b6d
6 changed files with 601 additions and 143 deletions

View File

@@ -1,4 +1,6 @@
import { Component } from '@angular/core';
import { ipcRenderer } from 'electron';
import * as childProcess from 'child_process';
@Component({
selector: 'app-root',
@@ -7,4 +9,12 @@ import { Component } from '@angular/core';
})
export class AppComponent {
title = 'app works!';
}
constructor() {
// Check if electron is correctly injected (see externals in webpack.config.js)
console.log('c', ipcRenderer);
// Check if nodeJs childProcess is correctly injected (see externals in webpack.config.js)
console.log('c', childProcess);
}
}