Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
1e561c9f
Unverified
Commit
1e561c9f
authored
2 years ago
by
Allan Bogh
Committed by
GitHub
2 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1 from ajbogh/ajbogh-disable-clear-console
Update clearConsole.js
parents
d960b9e3
bc0801b2
github/fork/ajbogh/main
1 merge request
!12821
Update clearConsole.js
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-dev-utils/clearConsole.js
+4
-0
packages/react-dev-utils/clearConsole.js
with
4 additions
and
0 deletions
+4
-0
packages/react-dev-utils/clearConsole.js
+
4
-
0
View file @
1e561c9f
...
...
@@ -8,6 +8,10 @@
'
use strict
'
;
function
clearConsole
()
{
if
(
process
.
env
.
DISABLE_CLEAR_CONSOLE
)
{
return
;
}
process
.
stdout
.
write
(
process
.
platform
===
'
win32
'
?
'
\
x1B[2J
\
x1B[0f
'
:
'
\
x1B[2J
\
x1B[3J
\
x1B[H
'
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets