Catch errors with style πŸ’₯✨
Switch branches/tags
Nothing to show
Clone or download

Error Overlay Webpack Plugin

Build Status version MIT License

Catch errors with style πŸ’₯✨

This plugin will display an error overlay in your application. It is the same error overlay used in create-react-app.

  • πŸ“¦ Webpack 4 support
  • πŸ₯ž Elegant stack trace
  • πŸ“ Click to open error line in editor

Error Overlay Webpack Plugin Example

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


// webpack.config.js
const ErrorOverlayPlugin = require('error-overlay-webpack-plugin')

module.exports = {
  entry: 'main.js',
  output: {
    path: __dirname + '/dist',
    filename: 'bundle.js',
  plugins: [new ErrorOverlayPlugin()],
  devtool: 'cheap-module-source-map', // 'eval' is not supported by error-overlay-webpack-plugin