gen-buildinfo-webpack-plugin weekly downloads statistics
By SolidZORO · npm · Webpack plugins
generate a buildinfo.json file to public directory
gen-buildinfo-webpack-plugin has 34 recorded weekly downloads on npm, ranking #2017 of 2,819 tracked listings.
About gen-buildinfo-webpack-plugin
gen-buildinfo-webpack-plugin
Generate a buildinfo.json file to public directory.
Installation
# Webpack (CRA)
yarn add -D gen-buildinfo-webpack-plugin
# Next.js
yarn add gen-buildinfo-webpack-plugin
Usage
Webpack (CRA)
// webpack.config.js
const GenBuildinfoWebpackPlugin = require('gen-buildinfo-webpack-plugin');
new GenBuildinfoWebpackPlugin({
package: require('./package.json'),
//
// [Options]
// fileDir: PROJECT_PUBLIC_DIR,
// fileName: 'buildinfo.json',
// commitHashLength: 4,
})
Next.js
// next.config.js
// use `process.env.NEXT_PUBLIC_BUILD_INFO`
const { getBuildInfo } = require('gen-buildinfo-webpack-plugin');
module.exports = {
env: {
NEXT_PUBLIC_BUILD_INFO: JSON.stringify(
getBuildInfo({ package: require('./package.json') }),
),
},
webpack(webpackConfig) {
return webpackConfig;
},
// ....
}
Output
const { getBuildInfo } = require('gen-buildinfo-webpack-plugin');
// {
// "PKG_NAME": "demo",
// "AUTHOR": "Jason Feng <solidzoro[#]live.com>",
// "VERSION": "2.66.1",
// "BUILD_NUMBER": 2066001,
// "BUILD_TIME": "20230406-142929",
// "COMMIT_HASH": "c6ed"
// };
const buildInfo = getBuildInfo({ package: require('../../package.json') });
License
MIT © Jason Feng
<!-- badges -->Description from the npm listing.
- buildinfo
- webpack-plugin
- webpack
- plugin
- build
- info
- output
- git
- hash
- project
- file
- callback
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (1)Similar npm Webpack plugins plugins
All 20 gen-buildinfo-webpack-plugin alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/gen-buildinfo-webpack-plugin. First seen Nov 4, 2026; last successful collection Nov 4, 2026. See the methodology.