How to disable logs in webpack?

Member

by jerad , in category: Javascript , 10 months ago

How to disable logs in webpack?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by darion , 10 months ago

@jerad 

To disable logs in webpack, you can use the stats configuration option in your webpack configuration file. Here's an example:

1
2
3
4
5
6
module.exports = {
  // other webpack configuration options
  
  // disable logs
  stats: 'none'
};


Setting the stats option to 'none' will disable all logs in the webpack output. You can also customize the level of logging by setting stats to other values such as 'normal', 'verbose', etc.


You can find more information about different logging options in the webpack documentation: https://webpack.js.org/configuration/stats/

Related Threads:

How to stop showing build logs from webpack?
How to disable chunking in webpack?
How disable eslint-loader of storybook's webpack?
How does webpack-encore works with symfony 5?
How to format logs dynamically with grafana?
How to view server logs in laravel?