9c419c24ba | ||
---|---|---|
.. | ||
README.md | ||
build.js | ||
example.js | ||
template.md | ||
webpack.config.js |
README.md
This configuration will enable the normal 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: "normal"
};
dist/output.js
/******/ (() => { // webpackBootstrap
var __webpack_exports__ = {};
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! unknown exports (runtime-defined) */
/*! runtime requirements: */
console.log("Hello World!");
/******/ })()
;
Info
Production mode
asset output.js 28 bytes [emitted] [minimized] (name: main)
./example.js 29 bytes [built] [code generated]
webpack 5.88.0 compiled successfully