mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 06:55:08 -04:00
Tidied up Argon2 operations
This commit is contained in:
parent
ca340cdd7b
commit
25fe7bba67
8 changed files with 88 additions and 32 deletions
|
@ -115,7 +115,7 @@ module.exports = {
|
|||
},
|
||||
module: {
|
||||
// argon2-browser loads argon2.wasm by itself, so Webpack should not load it
|
||||
noParse: /node_modules\/argon2-browser\/dist\/argon2\.wasm$/,
|
||||
noParse: /argon2\.wasm$/,
|
||||
rules: [
|
||||
{
|
||||
test: /\.m?js$/,
|
||||
|
@ -129,10 +129,16 @@ module.exports = {
|
|||
loader: "babel-loader"
|
||||
},
|
||||
{
|
||||
test: /node_modules\/argon2-browser\/dist\/argon2\.wasm$/,
|
||||
// Load argon2.wasm as base64-encoded binary file
|
||||
// expected by argon2-browser
|
||||
loaders: "base64-loader",
|
||||
test: /node-forge/,
|
||||
loader: "imports-loader",
|
||||
options: {
|
||||
additionalCode: "var jQuery = false;"
|
||||
}
|
||||
},
|
||||
{
|
||||
// Load argon2.wasm as base64-encoded binary file expected by argon2-browser
|
||||
test: /argon2\.wasm$/,
|
||||
loader: "base64-loader",
|
||||
type: "javascript/auto"
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue