WebpackStatsPrettifyPlugin
A plugin to beautify webpack stats output
Introduction
Webpack 5 Default Output:
Use WebpackStatsPrettifyPlugin:
Getting Started
To begin, you'll need to install copy-webpack-plugin:
npm install webpack-stats-prettify-plugin --save-dev
# or use yarn
yarn add -D webpack-stats-prettify-plugin
# or use pnpm
pnpm add -D webpack-stats-prettify-plugin
Then add the plugin to your webpack config. For example:
webpack.config.js
const WebpackStatsPrettifyPlugin = require("webpack-stats-prettify-plugin");
module.exports = {
plugins: [new WebpackStatsPrettifyPlugin()],
stats: "errors-warnings",
performance: {
maxEntrypointSize: 1500000,
maxAssetSize: 500000,
hints: "warning",
},
};