Skip to content

Enable Node MD4 support when building, required by Webpack

Wladimir Palant requested to merge palant/aula-app:webpack-md4-support into develop

Build currently fails on my system due to Webpack issue 14532 – Webpack uses MD4 which OpenSSL no longer supports by default. Changing output.hashFunction doesn’t solve this entirely, elsewhere in the Webpack code MD4 is hardcoded. So the only work-around seems to be NODE_OPTIONS=--openssl-legacy-provider environment variable.

This change makes sure this environment variable is always set when building.

Merge request reports