Skip to content

Commit 8dceddb

Browse files
authored
chore: use stdout.columns to determine the stats table width (#5754)
closes #5749
1 parent 8e4090f commit 8dceddb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli-service/lib/commands/build/formatStats.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = function formatStats (stats, dir, api) {
22
const fs = require('fs')
33
const path = require('path')
44
const zlib = require('zlib')
5-
const ui = require('cliui')({ width: 80 })
5+
const ui = require('cliui')({ width: process.stdout.columns || 80 })
66
const { chalk } = require('@vue/cli-shared-utils')
77

88
const json = stats.toJson({

0 commit comments

Comments
 (0)