diff options
Diffstat (limited to 'config/helpers/vendor_dll_hash.js')
-rw-r--r-- | config/helpers/vendor_dll_hash.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/helpers/vendor_dll_hash.js b/config/helpers/vendor_dll_hash.js index 9b99b4c4ae9..5d7feb35d36 100644 --- a/config/helpers/vendor_dll_hash.js +++ b/config/helpers/vendor_dll_hash.js @@ -1,6 +1,6 @@ -const crypto = require('crypto'); const fs = require('fs'); const path = require('path'); +const crypto = require('./patched_crypto'); const CACHE_PATHS = [ './config/webpack.config.js', @@ -11,7 +11,7 @@ const CACHE_PATHS = [ const resolvePath = (file) => path.resolve(__dirname, '../..', file); const readFile = (file) => fs.readFileSync(file); -const fileHash = (buffer) => crypto.createHash('md5').update(buffer).digest('hex'); +const fileHash = (buffer) => crypto.createHash('sha256').update(buffer).digest('hex'); module.exports = () => { const fileBuffers = CACHE_PATHS.map(resolvePath).map(readFile); |