Home > Mobile >  Stop React Webpack from writing in terminal
Stop React Webpack from writing in terminal

Time:12-31

How can I stop this output from terminal? One week ago I created a ReactJS project with npx create-react-app and it works with no problem. This is in the terminal of the first project: 1st terminal (ignore the errors) And this is in the terminal of my second project that I started today: 2nd terminal Which reupdates every time I save any file. Both projects were started with npm start. Is there every way I can stop VSCode from showing that in my terminal?

CodePudding user response:

You can silence output from any commands using shell redirection. Exact syntax varies per platform, but here's a few:

  • CMD (windows): npm start > nul
  • Powershell (windows): npm start > $null
  • Linux: npm start > /dev/null
  • Related