source: trip-planner-front/node_modules/@angular-devkit/build-angular/src/webpack/configs/stats.js@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.4 KB
Line 
1"use strict";
2/**
3 * @license
4 * Copyright Google LLC All Rights Reserved.
5 *
6 * Use of this source code is governed by an MIT-style license that can be
7 * found in the LICENSE file at https://angular.io/license
8 */
9Object.defineProperty(exports, "__esModule", { value: true });
10exports.getStatsConfig = exports.getWebpackStatsConfig = void 0;
11const webpackOutputOptions = {
12 all: false,
13 colors: true,
14 hash: true,
15 timings: true,
16 chunks: true,
17 builtAt: true,
18 warnings: true,
19 errors: true,
20 assets: true,
21 cachedAssets: true,
22 // Needed for markAsyncChunksNonInitial.
23 ids: true,
24 entrypoints: true,
25};
26const verboseWebpackOutputOptions = {
27 // The verbose output will most likely be piped to a file, so colors just mess it up.
28 colors: false,
29 usedExports: true,
30 optimizationBailout: true,
31 reasons: true,
32 children: true,
33 assets: true,
34 version: true,
35 chunkModules: true,
36 errorDetails: true,
37 moduleTrace: true,
38 logging: 'verbose',
39 modulesSpace: Infinity,
40};
41function getWebpackStatsConfig(verbose = false) {
42 return verbose
43 ? { ...webpackOutputOptions, ...verboseWebpackOutputOptions }
44 : webpackOutputOptions;
45}
46exports.getWebpackStatsConfig = getWebpackStatsConfig;
47function getStatsConfig(wco) {
48 const verbose = !!wco.buildOptions.verbose;
49 return { stats: getWebpackStatsConfig(verbose) };
50}
51exports.getStatsConfig = getStatsConfig;
Note: See TracBrowser for help on using the repository browser.