|
1 | 1 | import * as path from 'path';
|
2 | 2 | import * as glob from 'glob';
|
3 | 3 | import * as webpack from 'webpack';
|
4 |
| -const webpackBuildLogger = require('webpack-build-logger'); |
5 | 4 |
|
6 | 5 | import { CliConfig } from '../config';
|
7 | 6 | import { WebpackTestOptions } from '../webpack-test-config';
|
8 | 7 | import { KarmaWebpackEmitlessError } from '../../plugins/karma-webpack-emitless-error';
|
9 | 8 |
|
10 | 9 |
|
11 |
| - |
12 |
| -function FileListPlugin() { } |
13 |
| - |
14 |
| -FileListPlugin.prototype.apply = function (compiler: any) { |
15 |
| - compiler.plugin('emit', function (compilation: any, callback: any) { |
16 |
| - // Create a header string for the generated file: |
17 |
| - var filelist = 'In this build:\n\n'; |
18 |
| - |
19 |
| - // Loop through all compiled assets, |
20 |
| - // adding a new line item for each filename. |
21 |
| - for (var filename in compilation.assets) { |
22 |
| - filelist += ('- ' + filename + '\n'); |
23 |
| - } |
24 |
| - |
25 |
| - console.log(`\n${filelist}\n`) |
26 |
| - |
27 |
| - callback(); |
28 |
| - }); |
29 |
| -}; |
30 |
| - |
31 | 10 | /**
|
32 | 11 | * Enumerate loaders and their dependencies from this file to let the dependency validator
|
33 | 12 | * know they are used.
|
@@ -87,8 +66,6 @@ export function getTestConfig(testConfig: WebpackTestOptions) {
|
87 | 66 | chunks: ['main'],
|
88 | 67 | minChunks: (module: any) => module.resource && module.resource.startsWith(nodeModules)
|
89 | 68 | }),
|
90 |
| - // new webpackBuildLogger({ logEnabled: true }), |
91 |
| - // new (<any>FileListPlugin)(), |
92 | 69 | new KarmaWebpackEmitlessError()
|
93 | 70 | ].concat(extraPlugins)
|
94 | 71 | };
|
|
0 commit comments