webpack/examples/stats-minimal
Alexander Akait b4dfee432d
docs: update examples (#19663)
2025-07-08 15:46:25 +03:00
..
README.md docs: update examples (#19663) 2025-07-08 15:46:25 +03:00
build.js docs: add `nodejs-addons` example (#19475) 2025-04-28 21:11:48 +03:00
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 refactor: use `eslint-config-webpack` (#19645) 2025-07-02 15:10:54 +03:00

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

"use strict";

const path = require("path");

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

dist/output.js

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

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

Info

Production mode

1 asset
1 module
webpack X.X.X compiled successfully