npm install build-time-reporter-webpack-plugin --save-devwebpack.config.js
const BuildTimeReporterWebpackPlugin = require('build-time-reporter-webpack-plugin');
module.exports = {
plugins: [
new BuildTimeReporterWebpackPlugin({
report: (report) => console.log('Here is there report!', report),
}),
],
};new BuildTimeReporterWebpackPlugin(options?: object)| Name | Type | Description |
|---|---|---|
report |
(report) => void |
Callback function with report as argument. This should be used |