mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
include crypto-api src into lib to get around mjs import issue. compiled node lib now requires successfully.
This commit is contained in:
parent
91eb692d99
commit
20452fe3cb
4 changed files with 2064 additions and 2062 deletions
|
@ -255,7 +255,9 @@ module.exports = function (grunt) {
|
|||
mode: "production",
|
||||
target: "node",
|
||||
entry: "./src/node/index.mjs",
|
||||
externals: [NodeExternals()],
|
||||
externals: [NodeExternals({
|
||||
whitelist: ["crypto-api/src/crypto-api"]
|
||||
})],
|
||||
output: {
|
||||
filename: "CyberChef.js",
|
||||
path: __dirname + "/build/node",
|
||||
|
@ -264,7 +266,7 @@ module.exports = function (grunt) {
|
|||
},
|
||||
plugins: [
|
||||
new webpack.DefinePlugin(BUILD_CONSTANTS)
|
||||
]
|
||||
],
|
||||
}
|
||||
},
|
||||
"webpack-dev-server": {
|
||||
|
@ -390,7 +392,6 @@ module.exports = function (grunt) {
|
|||
generateNodeIndex: {
|
||||
command: [
|
||||
"echo '\n--- Regenerating node index ---'",
|
||||
|
||||
"echo 'Copying OperationConfig.json and wiping original'",
|
||||
"cp src/core/config/OperationConfig.json src/node/config/OperationConfig.json",
|
||||
"echo 'export default {};\n' > src/core/config/modules/OpModules.mjs",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue