#NPM
npm install webpack-report
#YARN
yarn add webpack-report
const WebpackReport = require('webpack-report');
module.exports = {
plugins: [
new WebpackReport()
]
}
new WebpackReport(options)
Name | Type | Default | Description |
---|---|---|---|
host |
string | localhost | webpack-report server host name |
port |
number | 1237 | webpack-report server run at this port |
open |
boolean | true | open report in default browser |
statsOptions |
object | options passed in stats.toJson() method. |
|
packageJsonPath |
string | project package.json custom file path |
clone repository
install dependency
npm install
npm install
npm start
dev server will start
MIT