mirror of
https://github.com/Mastermindzh/react-starter-kit.git
synced 2025-08-02 23:53:18 +02:00
- Updated to React 18
- Updated for public release - Git was reset for privacy reasons
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