This repository has been archived by the owner on Jun 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathudk.container.js
54 lines (52 loc) · 1.56 KB
/
udk.container.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
module.exports = {
context: __dirname,
angularProject: 'jui',
hmr: false,
metafiles: [
'angular.json',
'package.json',
'src/tsconfig.app.json',
'src/tsconfig.server.json',
'src/index.html',
'src/main.server.ts',
'tsconfg.json'
],
bootstrap(proc, configPath) {
this.logger.info('[udk] > bootstrap container');
},
onCompilerWatchClose() {
this.logger.info('[udk] >>> compiler watch close');
},
onCompilerDone(stats) {
this.logger.info('[udk] >>> compiler done');
},
onCompilerFailed(err) {
this.logger.error('[udk] >>> compiler failed');
},
onCompilerWatching(err, stats) {
this.logger.info('[udk] >>> compiler watching...');
},
onDown(event, ...args) {
this.logger.info('[udk] >> container down', { event, args });
},
onUncaughtException(err) {
this.logger.error('[udk] uncaught exception', err);
},
onUnhandledRejection(reason, promise) {
this.logger.error('[udk] unhandled rejection', { reason, promise });
},
onUp(proc) {
this.logger.info('[udk] >> container up');
},
prepareCompiler(compiler) {
this.logger.info('[udk] >>> prepare webpack compiler');
compiler.compilers.forEach(c => {
c.hooks.invalid.tap('LogPlugin', file => {
this.logger.info('[udk] >>> compiler invalid', c.name, file);
});
});
},
prepareWebpackConfig() {
this.logger.info('[udk] >>> prepare webpack config');
}
};