A simple Webpack plugin that creates a file with specified content at the end of the build process. Version 1.0.2 is the current stable release, with no active maintenance or updates since 2019. It differentiates from similar plugins (e.g., `write-file-webpack-plugin`) by its minimalism: only three options (`path`, `fileName`, `content`). Works with Webpack 4 and earlier; compatibility with Webpack 5 is untested and likely requires adjustments due to hook changes.
npm install create-file-webpackVerified import paths — ran on the pinned version, not inferred.
Creates a version.txt file in dist/ with content '1.0.0' after build.
Use an alternative plugin or check for updates on GitHub. Consider using 'write-file-webpack-plugin' or custom code.
Ensure the output directory exists or use 'mkdirp' before running Webpack.
Convert non-string content to string before passing.
Consider migrating to a maintained alternative.
Ensure path is a string, e.g., new CreateFileWebpack({ path: './dist', ... })Use Webpack 4 or patch the plugin.
Run 'npm install create-file-webpack --save-dev' and verify node_modules.