Repository URL to install this package:
|
Version:
3.1.2 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const webpack_1 = tslib_1.__importDefault(require("webpack"));
const webpack_config_js_1 = tslib_1.__importDefault(require("./webpack.config.js"));
const compiler = webpack_1.default(webpack_config_js_1.default);
const ENV_INFRA = process.env.CI !== undefined;
console.log('begining the build...');
compiler.run((compilationError, stats) => {
if (compilationError) {
throw compilationError;
// console.error(compilationError)
// return
}
if (ENV_INFRA) {
console.log('minimal logs for CI');
}
else {
const json = stats.toJson({
reasons: true,
errors: true,
modules: true,
exclude: true,
chunks: true,
verbose: true,
debug: true,
providedExports: false,
usedExports: true,
maxModules: 1000,
});
require('fliplog')
.json(json)
.bold('STATS')
.echo();
console.log(stats.toString({ colors: true }));
}
});
//# sourceMappingURL=buildWithStats.js.map