webpack-real-content-hash-check-plugin
v0.0.1
Published
Check whether RealContentHashPlugin changes the source code
Readme
RealContentHashCheckPlugin
Run the logic same as RealContentHashPlugin but early and check for any sketchy matches
config & example
process.env
// output assets info to debug plugin
process.env.debug
// disable webpack emit blocking, but still output any sketchy matches
process.env.DisableRealContentHashCheckPluginplugin config
const { RealContentHashCheckPlugin } = require('webpack-real-content-hash-check-plugin')
// webpack.config
plugins: [
new RealContentHashCheckPlugin({
// default config is list below, overwrite any as your need
// output assets filter by ext
extensions: ['.js', '.css'],
// check assets filter by filename
// https://webpack.js.org/concepts/manifest/#runtime
excludes: ['runtime'],
}),
]