code: function printFileSizes(stats) {
    stats.toJson().assets
      .filter(asset => /\.(js|css)$/.test(asset.name))
      .map(asset => {
        const fileStats = fs.statSync('./build/' + asset.name);
        const fileSize = (fileStats.size / 1000).toFixed(2); // in kbs, originally in bytes
  
        return {
          name: asset.name,
          size: fileSize,
          unit: 'Kb.'
        };
      })
      .sort((a, b) => b.size - a.size)
      .forEach(asset => {
        const {name, size, unit} = asset;
  
        logSuccess(`\t- ${name} -> ${size} ${unit}`);
      });
  }
docs: Print a detailed summary of build files.