NET-Web-API-w-Angular/my-app/node_modules/license-webpack-plugin/dist/Logger.js

22 lines
680 B
JavaScript
Raw Normal View History

2024-02-09 00:38:41 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Logger = void 0;
var Logger = /** @class */ (function () {
function Logger(stats) {
this.stats = stats;
}
Logger.prototype.warn = function (compilation, message) {
if (this.stats.warnings) {
compilation.warnings.push("" + Logger.LOG_PREFIX + message);
}
};
Logger.prototype.error = function (compilation, message) {
if (this.stats.errors) {
compilation.errors.push("" + Logger.LOG_PREFIX + message);
}
};
Logger.LOG_PREFIX = 'license-webpack-plugin: ';
return Logger;
}());
exports.Logger = Logger;