webpack/examples/stats-summary/README.md

47 lines
720 B
Markdown
Raw Normal View History

This configuration will enable the summary output for the stats report.
You see that everything is working nicely together.
# example.js
```javascript
console.log("Hello World!");
```
# webpack.config.js
```javascript
const path = require("path");
module.exports = {
output: {
path: path.join(__dirname, "dist"),
filename: "output.js"
},
stats: "summary"
};
```
# dist/output.js
```javascript
/******/ (() => { // webpackBootstrap
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! unknown exports (runtime-defined) */
/*! runtime requirements: */
console.log("Hello World!");
/******/ })()
;
```
# Info
## Production mode
```
webpack X.X.X compiled successfully
```