We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f5691b commit 7c2a36bCopy full SHA for 7c2a36b
packages/@vue/cli-shared-utils/lib/logger.js
@@ -1,6 +1,5 @@
1
const chalk = require('chalk')
2
const stripAnsi = require('strip-ansi')
3
-const readline = require('readline')
4
const EventEmitter = require('events')
5
6
const { stopSpinner } = require('./spinner')
@@ -59,10 +58,7 @@ exports.error = (msg, tag = null) => {
59
58
60
exports.clearConsole = title => {
61
if (process.stdout.isTTY) {
62
- const blank = '\n'.repeat(process.stdout.rows)
63
- console.log(blank)
64
- readline.cursorTo(process.stdout, 0, 0)
65
- readline.clearScreenDown(process.stdout)
+ console.clear()
66
if (title) {
67
console.log(title)
68
}
0 commit comments