source: trip-planner-front/node_modules/license-webpack-plugin/dist/Logger.js@ eed0bf8

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

initial commit

  • Property mode set to 100644
File size: 680 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.Logger = void 0;
4var Logger = /** @class */ (function () {
5 function Logger(stats) {
6 this.stats = stats;
7 }
8 Logger.prototype.warn = function (compilation, message) {
9 if (this.stats.warnings) {
10 compilation.warnings.push("" + Logger.LOG_PREFIX + message);
11 }
12 };
13 Logger.prototype.error = function (compilation, message) {
14 if (this.stats.errors) {
15 compilation.errors.push("" + Logger.LOG_PREFIX + message);
16 }
17 };
18 Logger.LOG_PREFIX = 'license-webpack-plugin: ';
19 return Logger;
20}());
21exports.Logger = Logger;
Note: See TracBrowser for help on using the repository browser.