|
|
|
@ -101,17 +101,20 @@ var compile = function (config) {
|
|
|
|
|
|
|
|
|
|
var info = stats.toJson();
|
|
|
|
|
|
|
|
|
|
if (stats.hasErrors()) {
|
|
|
|
|
console.error(colors.red(info.errors));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (stats.hasWarnings()) {
|
|
|
|
|
console.warn(colors.yellow(info.warnings));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
console.log(colors.yellow('Time: ' + info.time));
|
|
|
|
|
if (stats.hasErrors()) {
|
|
|
|
|
console.error(colors.red(info.errors));
|
|
|
|
|
console.error('');
|
|
|
|
|
console.error('🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥');
|
|
|
|
|
console.error(colors.red('THERE WAS AN ERROR WHILE BUNDLING!!!'));
|
|
|
|
|
console.error('🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥');
|
|
|
|
|
}
|
|
|
|
|
if (!stats.hasErrors() && !stats.hasWarnings()) {
|
|
|
|
|
logAssets(info.assets);
|
|
|
|
|
|
|
|
|
|
console.log(colors.yellow('Time: ' + info.time));
|
|
|
|
|
}
|
|
|
|
|
done();
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|