Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
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.
configHash: function(webpackConfig) {
return require('node-object-hash')().hash(webpackConfig);
}
})
configHash: (webpackConfig) => (
require('node-object-hash')({
sort: false
}).hash(webpackConfig)
),
environmentHash: {