Package detail

error-logger-webpack-plugin

enonic849GPL-3.01.1.1

Log webpack errors in readable format, suitable for navigation.

webpack, plugin, error, logger

readme

error-logger-webpack-plugin

Log webpack errors in readable format, suitable for navigation.

Install

npm install --save-dev error-logger-webpack-plugin

Usage

webpack.config.js
const ErrorLoggerPlugin = require('error-logger-webpack-plugin');
// ...

const config = {
  // ...
  plugins: [
    new ErrorLoggerPlugin({verbose: false})
  ]
};

module.exports = config;

See the official webpack documentation for a deeper explanation of plugin usage.

Configuration

You can pass a hash of configuration options to ErrorLoggerPlugin, such as:

  • verbose: true | false If false (default) try to minimize the error message.