How to use the node-object-hash.hash function in node-object-hash

To help you get started, we’ve selected a few node-object-hash examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github chrisblossom / react-universal-starter / tools / webpack / dll.js View on Github external
configHash: function(webpackConfig) {
                // Build a string value used by HardSource to determine which cache to
                // use if [confighash] is in cacheDirectory or if the cache should be
                // replaced if [confighash] does not appear in cacheDirectory.
                //
                // node-object-hash on npm can be used to build this.
                return require('node-object-hash')({ sort: false }).hash(
                    webpackConfig
                );
            },
            // This field determines when to throw away the whole cache if for
github zuzucheFE / guido / lib / config / webpack.config.prod.js View on Github external
configHash: function(webpackConfig) {
			// node-object-hash on npm can be used to build this.
			return require('node-object-hash')({ sort: false }).hash(
				webpackConfig
			);
		},
		// Clean up large, old caches automatically.
github MattSurabian / DuckHunt-JS / webpack.config.js View on Github external
configHash: function(webpackConfig) {
        return require('node-object-hash')().hash(webpackConfig);
      }
    })
github lnked / react-starter / webpack / plugins / hard-cache.js View on Github external
configHash: (webpackConfig) => (
            require('node-object-hash')({
                sort: false
            }).hash(webpackConfig)
        ),
        environmentHash: {

node-object-hash

Node.js object hash library with properties/arrays sorting to provide constant hashes

MIT
Latest version published 1 year ago

Package Health Score

71 / 100
Full package analysis