1.2.0 • Published 7 years ago

webpack-checksum-plugin v1.2.0

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
7 years ago

Webpack Checksum Plugin

This plugin will generate checksum files for files outputted by Webpack.

Usage

 plugins: [
	new ChecksumPlugin({
		distPath: 'build',
		assetPath: '/v5/touch/',
		outputFilename: 'checksums',
		checksumPattern: 'hash:filepath',
		resetChecksumFile: false
	})
]

Options

NameRequiredDefaultDetails
distPathYThe path where the outputted Webpack files will be generated to.
assetPathYThe public path where the outputted Webpack files will be accessible from.
outputFilenameNchecksumsThe name of the generated checksums file.
checksumPatternNhash:filepathThe pattern that should be used in the generated checksums file. The only available variales are hash and filepath.
resetChecksumFileNfalseTells the plugin whether or not it should reset the contents of the outputted checksum file, or if it should just append to it.