Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

error-overlay-webpack-plugin

gregberge129.8kMIT1.1.1

Webpack plugin to automatically display an error overlay in your application.

webpack, plugin, webpack-plugin, react, react-error-overlay, error-overlay

readme

Error Overlay Webpack Plugin

Node.js CI

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 5 support
  • 🥞 Elegant stack trace
  • 📝 Click to open error line in editor
Error Overlay Webpack Plugin Example
npm install error-overlay-webpack-plugin --save-dev

Usage

// 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
}

License

MIT

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

1.1.1 (2022-11-14)

Bug Fixes

  • compatibility with webpack-dev-server (f3eaa7b)

1.1.0 (2022-02-12)

Features

Bug Fixes

  • options has an unknown property 'before' (#88) (28de3ed)

1.0.0 (2021-08-30)

0.4.2 (2021-02-02)

Bug Fixes

  • pass in compiler to devServer before() (#66) (c0feceb)

0.4.1 (2019-08-28)

Features

0.4.0 (2019-06-17)

Features

0.3.0 (2019-05-23)

Features

  • close overlay on 'ok' event (#39) (1471e29)
  • use webpack options sockPath, sockHost, and sockPort to get socket URL (#42) (b763f76)

0.2.0 (2019-03-21)

Features

  • made socket listener optional (required when using dev-middleware only) (#34) (90caf91)

0.1.7 (2019-03-14)

Bug Fixes

0.1.6 (2019-01-11)

Bug Fixes

  • preserve both arguments of original before function (#23) (433ccb3)

0.1.5 (2018-05-25)

Bug Fixes

0.1.4 (2018-03-14)

Bug Fixes

0.1.3 (2018-03-11)

Bug Fixes

  • expose package without .default (bcdcd15), closes #3
  • handle Object-based entry settings (multi-entries) (3d6489d), closes #4

0.1.2 (2018-03-09)

Bug Fixes

0.1.1 (2018-03-09)

Bug Fixes

0.1.0 (2018-03-09)

Features