webpack/examples/stats-minimal
Sachin Kumar 4615bc07c3 chore: fix lint 2023-06-21 06:08:41 +05:30
..
README.md docs: add example for stats minimal output 2023-06-20 06:40:49 +05:30
build.js docs: add example for stats minimal output 2023-06-20 06:40:49 +05:30
example.js docs: add example for stats minimal output 2023-06-20 06:40:49 +05:30
template.md docs: add example for stats minimal output 2023-06-20 06:40:49 +05:30
webpack.config.js chore: fix lint 2023-06-21 06:08:41 +05:30

README.md

This configuration will enable the minimal output for the stats report.

You see that everything is working nicely together.

example.js

console.log("Hello World!");

webpack.config.js

const path = require("path");

module.exports = {
	output: {
		path: path.join(__dirname, "dist"),
		filename: "output.js"
	},
	stats: "minimal"
};

dist/output.js

/******/ (() => { // webpackBootstrap
var __webpack_exports__ = {};
/*!********************!*\
  !*** ./example.js ***!
  \********************/
/*! unknown exports (runtime-defined) */
/*! runtime requirements:  */
console.log("Hello World!");

/******/ })()
;

Info

Production mode

1 asset
1 module
webpack 5.87.0 compiled successfully