feat:
This commit is contained in:
9
config/webpack/persistentCache/createEnvironmentHash.js
Normal file
9
config/webpack/persistentCache/createEnvironmentHash.js
Normal file
@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
const { createHash } = require('crypto');
|
||||
|
||||
module.exports = env => {
|
||||
const hash = createHash('md5');
|
||||
hash.update(JSON.stringify(env));
|
||||
|
||||
return hash.digest('hex');
|
||||
};
|
Reference in New Issue
Block a user