1.1.0 • Published 5 years ago

snapshot-build-hash-webpack-plugin v1.1.0

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

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()]
}
1.1.0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago