$ show addyosmani/webpack-lighthouse-plugin
This repository is a Webpack plugin that integrates Google Lighthouse for running performance and quality audits during the build process. After Webpack emits assets, the plugin triggers Lighthouse against a specified URL, collects the report, and optionally saves artifacts like screenshots and traces. The codebase consists of two main parts: a Webpack-specific plugin that taps into the compiler's afterEmit hook, and a reusable Lighthouse runner module that handles Chrome lifecycle management, audit execution, and result processing. The project is explicitly marked as deprecated in the README, advising users to use Lighthouse directly instead.
The LLM identified 1 files worth highlighting for reuse:
This module provides a reusable interface for running Lighthouse audits programmatically from Node.js. It manages Chrome launcher lifecycle (including cleanup on SIGINT), processes audit results, saves reports and artifacts to disk, and handles error conditions. The code demonstrates strong resource management practices, proper promise handling, and separation of concerns, making it suitable for extraction into any Node.js script requiring Lighthouse integration without Webpack dependencies.