UNPKG

10up-toolkit

Version:

Collection of reusable scripts for 10up development.

16 lines (13 loc) 275 B
const displayWebpackStats = (err, stats) => { if (err) { console.error(err.stack || err); if (err.details) { console.error(err.details); } return; } process.stdout.write(`${stats.toString({ colors: true })}\n`); }; module.exports = { displayWebpackStats, };