A rudimentary error overlay for webpack-serve, mimicking the overlay from webpack-dev-server. Version 0.3.0 is the latest stable release, with no recent updates. The package requires webpack-serve and provides a minimal, quick way to display compilation errors in the browser during development. It uses a WebSocket connection similar to webpack-hot-client and requires no extra configuration. Conditional require with environment check is recommended to avoid inclusion in production builds.
npm install webpack-serve-overlayVerified import paths — ran on the pinned version, not inferred.
Basic setup to show error overlay in development mode using conditional require.
Ensure webpack-serve is installed alongside.
Specify WEBPACK_SERVE_OVERLAY_WS_URL=http://localhost:8080/ (or appropriate URL).
Use require() instead of import for this package.
Run npm install webpack-serve-overlay
Ensure this code is bundled by webpack or use import with appropriate configuration.
Set NODE_ENV=development and/or WEBPACK_SERVE_OVERLAY_WS_URL environment variable.
No dependency data recorded yet.