(env)
| 29 | const {WebpackManifestPlugin} = require('webpack-manifest-plugin'); |
| 30 | |
| 31 | function createEnvironmentHash(env) { |
| 32 | const hash = createHash('md5'); |
| 33 | hash.update(JSON.stringify(env)); |
| 34 | |
| 35 | return hash.digest('hex'); |
| 36 | } |
| 37 | |
| 38 | // Source maps are resource heavy and can cause out of memory issue for large source files. |
| 39 | const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false'; |