webpack/examples/stats-summary
Alexander Akait 196e19ede5
refactor: examples (#20085)
2025-11-04 18:22:51 +03:00
..
README.md refactor: examples (#20085) 2025-11-04 18:22:51 +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 summary output 2023-06-25 05:33:24 +05:30
template.md docs: add example for stats summary output 2023-06-25 05:33:24 +05:30
webpack.config.js refactor: examples (#20085) 2025-11-04 18:22:51 +03:00

README.md

This configuration will enable the summary 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");

/** @type {import("webpack").Configuration} */
const config = {
	output: {
		path: path.join(__dirname, "dist"),
		filename: "output.js"
	},
	stats: "summary"
};

module.exports = config;

dist/output.js

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

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

Info

Production mode

webpack X.X.X compiled successfully