Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

build-hash-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

build-hash-webpack-plugin

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

build-hash-webpack-plugin

License: MIT

NPM

Webpack plugin that emits a json file contaning the build hash.

Why Is This Useful?

When working with Webpack you might want to generate your build hash.

This plug-in outputs a json file contaning a single attribute hash wich is the build hash.

Example output:

The output is a JSON object in the form:

{"hash":"68aaedf27867fc4cb95d"}

Install

yarn add -D build-hash-webpack-plugin

Configuration

In your webpack config include the plug-in. And add it to your config:

import BuildHashPlugin from 'build-hash-webpack-plugin';
// ...
module.exports = {
    // ....
    plugins: [new BuildHashPlugin()]
}

Options

You can pass the following options:

filename

Optional. build-hash.json by default.

Name for the created json file.

new BuildHashPlugin({filename: 'build-hash.json'})

FAQs

Package last updated on 14 Feb 2019

Did you know?

Socket

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.

Install

Related posts