Doesn't work nicely with Node 18 (Or even 17)
Created by: Dorious
Describe the bug
Starting from Node 17 the Open SSL changed, and now we have to run in legacy mode, which probably isn't that great:
ERROR in ./src/style/img/bt_logo_white.svg
Module build failed (from ../node_modules/file-loader/dist/cjs.js):
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at getHashDigest (/Users/dorious/BT/athena-ui/node_modules/loader-utils/lib/getHashDigest.js:46:34)
at /Users/dorious/BT/athena-ui/node_modules/loader-utils/lib/interpolateName.js:113:11
at String.replace (<anonymous>)
at interpolateName (/Users/dorious/BT/athena-ui/node_modules/loader-utils/lib/interpolateName.js:110:8)
at Object.loader (/Users/dorious/BT/athena-ui/node_modules/file-loader/dist/index.js:29:48)
https://stackoverflow.com/a/73465262 Guys says we should change hashFunction in webpack output config, which obviously we can't do.