A general-purpose Webpack plugin (v1.0.1) for generating arbitrary files during the build process. Supports file paths (relative or absolute), content as strings, Buffers, Promises, or functions returning these. Works with Webpack 4.x (5.x untested) and Node.js 12+. Features include debug mode with console output. Less opinionated than similar plugins like `webpack-manifest-plugin` or `html-webpack-plugin`, allowing any file content generation. Last updated in 2020, currently in maintenance mode with no active development.
Verified import paths — ran on the pinned version, not inferred.
Package provides a CommonJS default export (function). There is no named export. Using ES import syntax fails in strict ESM contexts without a default export.
The named export 'GenerateFilePlugin' was added in v1.0.0 as the class name. The default export is the factory function. Both are functionally equivalent.
Same as GenerateFilePlugin, but using the full name. Prefer the shorter GenerateFilePlugin.
Demonstrates generating two files: a JSON file with version info and a text file with build timestamp using a function.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.