JSPM

snapshot-build-hash-webpack-plugin

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q40738F
  • License ISC

A Webpack plugin which take build hash and append to current version in package.json

Package Exports

  • snapshot-build-hash-webpack-plugin

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (snapshot-build-hash-webpack-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

snapshot-build-hash-webpack-plugin

License: MIT

NPM

This plugin is heavily inspired by build-hash-webpack-plugin.

Webpack plugin that append build hash with SNAPSHOT prefix on package.json and package-lock.json

Why Is This Useful?

For each build, Webpack generates an in-memory hash allowing to know if two build outputs are the same or not.

This plug-in change the version of package.json and package-lock.json appending this described build hash with a SNAPSHOT prefix.

Install

npm i --save-dev snapshot-build-hash-webpack-plugin

Configuration

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

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