129

GitHub - smooth-code/error-overlay-webpack-plugin: Catch errors with style ?✨

 6 years ago
source link: https://github.com/smooth-code/error-overlay-webpack-plugin
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

Error Overlay Webpack Plugin

Build Status version MIT License

Catch errors with style ?✨

This plugin 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

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()],
}

License

MIT


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK