source:
frontend/node_modules/react-scripts/config/webpack/persistentCache/createEnvironmentHash.js
| Last change on this file was 9af201e, checked in by , 13 days ago | |
|---|---|
|
|
| File size: 186 bytes | |
| Rev | Line | |
|---|---|---|
| [9af201e] | 1 | 'use strict'; |
| 2 | const { createHash } = require('crypto'); | |
| 3 | ||
| 4 | module.exports = env => { | |
| 5 | const hash = createHash('md5'); | |
| 6 | hash.update(JSON.stringify(env)); | |
| 7 | ||
| 8 | return hash.digest('hex'); | |
| 9 | }; |
Note:
See TracBrowser
for help on using the repository browser.
