webpack/examples/stats-none
Sachin Kumar 90aa8901ec docs: add example for stats none output 2023-07-30 06:39:09 +05:30
..
README.md docs: add example for stats none output 2023-07-30 06:39:09 +05:30
build.js docs: add example for stats none output 2023-06-30 05:55:02 +05:30
example.js docs: add example for stats none output 2023-06-30 05:55:02 +05:30
template.md docs: add example for stats none output 2023-06-30 05:55:02 +05:30
webpack.config.js docs: add example for stats none output 2023-07-30 06:39:09 +05:30

README.md

This configuration will enable the none 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: "none"
};

dist/output.js

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

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

Info

Production mode