A webpack plugin (v1.0.2) that generates asset files (e.g., JSON) containing the mapping of webpack output assets with their sizes and hash values. It is designed for webpack 4 and helps track compiled assets. The plugin writes an asset.json file to the output directory with details like filename, size, and hash. It is a niche tool compared to plugins like assets-webpack-plugin or webpack-manifest-plugin, which are more feature-rich and actively maintained. Release cadence is low (latest 2018), with no recent updates.
npm install webpack-asset-file-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure the plugin to output asset.json with compiled file details, excluding source maps.
Use an alternative like webpack-manifest-plugin for webpack 5.
Switch to actively maintained plugins like assets-webpack-plugin or webpack-manifest-plugin.
Set `update: true` to merge with existing asset file, if that behavior is desired.
Ensure plugin is instantiated and added to webpack's `plugins` array in config.
Add `filename` option, e.g., `new AssetFilePlugin({ filename: 'assets.json' })`.