
Product
A Fresh Look for the Socket Dashboard
We’ve redesigned the Socket dashboard with simpler navigation, less visual clutter, and a cleaner UI that highlights what really matters.
build-info-webpack-plugin
Advanced tools
Expose build specific information in global variables for debugging.
Expose build specific information in global variables for debugging.
$ npm install build-info-webpack-plugin
webpack.config.js
const BuildInfoPlugin = require('build-info-webpack-plugin');
module.exports = {
plugins: [BuildInfoPlugin]
};
package.json
This plugin stores the latest build number in package.json
so that it can be incremented upon subsequent builds. If the buildNumber
property does not exist, package.json
will not be modified.
{
...
"buildNumber": 0,
...
}
src/js/app.js
console.log(__BUILD_NUMBER__); // 1
console.log(__BUILD_UUID__); // eeabc64a-43d2-4284-8684-2e75a151e3af
console.log(__BUILD_DATE__); // 11/16/2020, 1:21:26 AM
console.log(__BUILD_COMMIT_HASH__); // 87326daf059935dd6f078700261714de413342d3
FAQs
Expose build specific information in global variables for debugging.
The npm package build-info-webpack-plugin receives a total of 2 weekly downloads. As such, build-info-webpack-plugin popularity was classified as not popular.
We found that build-info-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
We’ve redesigned the Socket dashboard with simpler navigation, less visual clutter, and a cleaner UI that highlights what really matters.
Industry Insights
Terry O’Daniel, Head of Security at Amplitude, shares insights on building high-impact security teams, aligning with engineering, and why AI gives defenders a fighting chance.
Security News
MCP spec updated with structured tool output, stronger OAuth 2.1 security, resource indicators, and protocol cleanups for safer, more reliable AI workflows.