mirror of https://github.com/webpack/webpack.git
52 lines
803 B
Markdown
52 lines
803 B
Markdown
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
|
|
"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
|
|
|
|
```javascript
|
|
/******/ (() => { // webpackBootstrap
|
|
/*!********************!*\
|
|
!*** ./example.js ***!
|
|
\********************/
|
|
/*! unknown exports (runtime-defined) */
|
|
/*! runtime requirements: */
|
|
console.log("Hello World!");
|
|
|
|
/******/ })()
|
|
;
|
|
```
|
|
|
|
# Info
|
|
|
|
## Production mode
|
|
|
|
```
|
|
webpack X.X.X compiled successfully
|
|
```
|