A webpack plugin for building userscript projects targeting Tampermonkey, Greasemonkey, Violentmonkey, and similar userscript engines. Current stable version is 3.2.3 (Dec 2024), with active maintenance on GitHub. The plugin automatically generates userscript headers from metadata, produces .meta.js files for update checks, and creates proxy scripts to avoid caching during development. Key differentiators: full TypeScript support since v3, multi-entry support, header interpolation, and integrated hot-reload workflow with webpack-dev-server. Requires webpack 5 as a peer dependency.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
v3 renamed the plugin from WebpackUserscript to UserscriptPlugin. Old name no longer works.
ESM named export is supported since v3 (TypeScript rewrite). Default export does not exist.
UserscriptOptions is a type export. Use `import type` in TypeScript to avoid runtime overhead.
Configures webpack-userscript with headers, metadata generation, and proxy script for hot development with webpack-dev-server.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.
No traffic data recorded yet.