Skip to content

Commit

Permalink
chore: use stdout.columns to determine the stats table width (#5754)
Browse files Browse the repository at this point in the history
closes #5749
  • Loading branch information
haoqunjiang authored Aug 6, 2020
1 parent 8e4090f commit 8dceddb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = function formatStats (stats, dir, api) {
const fs = require('fs')
const path = require('path')
const zlib = require('zlib')
const ui = require('cliui')({ width: 80 })
const ui = require('cliui')({ width: process.stdout.columns || 80 })
const { chalk } = require('@vue/cli-shared-utils')

const json = stats.toJson({
Expand Down

0 comments on commit 8dceddb

Please # to comment.