Socket
Socket
Sign inDemoInstall

webpack-md5-hash

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-md5-hash - npm Package Compare versions

Comparing version 0.0.1 to 0.0.3

.idea/jsLibraryMappings.xml

2

package.json
{
"name": "webpack-md5-hash",
"version": "0.0.1",
"version": "0.0.3",
"description": "Plugin to replace a standard webpack chunkhash with md5.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -26,10 +26,5 @@ var md5 = require("md5");

compiler.plugin("compilation", function(compilation) {
compilation.plugin("after-hash", function() {
for (var chunk_id in this.chunks) {
if (this.chunks.hasOwnProperty(chunk_id)) {
var chunk = this.chunks[chunk_id];
var source = chunk.modules.sort(compareModules).map(getModuleSource).reduce(concatenateSource);
chunk.renderedHash = md5(source);
}
}
compilation.plugin("chunk-hash", function(chunk, chunkHash) {
var source = chunk.modules.sort(compareModules).map(getModuleSource).reduce(concatenateSource);
chunk.hash = md5(source);
});

@@ -36,0 +31,0 @@ });

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc