Long-form log output of build events during a webpack process.
Streams out detailed log information as a webpack build occurs. Includes support for recognizing prerendering and v8 snapshotting.
npm install --save-dev @enact/dev-utils
In your webpack.config.js
:
const {VerboseLogPlugin} = require('@enact/dev-utils');
// ...
plugins: [
new VerboseLogPlugin();
],
You can pass optional configuration settings to VerboseLogPlugin
.
Allowed values are as follows:
stream
: Stream to output the log datainto. By default will useprocess.stdout
.
Here's an example webpack config illustrating how to use these options:
{
entry: 'index.js',
output: {
path: 'dist',
filename: 'bundle.js'
},
plugins: [
new VerboseLogPlugin({
stream: process.stdout
})
]
}