mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-23 16:26:16 -04:00
update HMAC test after merge and add loader to allow external uglifyjs plugin to work for node builds
This commit is contained in:
parent
97255bbb33
commit
b19f8f65a4
5 changed files with 578 additions and 42 deletions
14
Gruntfile.js
14
Gruntfile.js
|
@ -249,7 +249,7 @@ module.exports = function (grunt) {
|
|||
path: __dirname + "/build/test"
|
||||
},
|
||||
plugins: [
|
||||
new webpack.DefinePlugin(BUILD_CONSTANTS)
|
||||
new webpack.DefinePlugin(BUILD_CONSTANTS),
|
||||
]
|
||||
},
|
||||
node: {
|
||||
|
@ -268,16 +268,17 @@ module.exports = function (grunt) {
|
|||
plugins: [
|
||||
new webpack.DefinePlugin(BUILD_CONSTANTS)
|
||||
],
|
||||
// Need to preserve property names for bake, search
|
||||
optimization: {
|
||||
minimizer: [
|
||||
new UglifyJSWebpackPlugin({
|
||||
cache: true,
|
||||
parallel: true,
|
||||
uglifyOptions: {
|
||||
mangle: false,
|
||||
"keep_fnames": true,
|
||||
}
|
||||
})
|
||||
]
|
||||
},
|
||||
}
|
||||
},
|
||||
nodeRepl: {
|
||||
mode: "production",
|
||||
|
@ -295,12 +296,13 @@ module.exports = function (grunt) {
|
|||
plugins: [
|
||||
new webpack.DefinePlugin(BUILD_CONSTANTS)
|
||||
],
|
||||
// Need to preserve property names for bake, search
|
||||
optimization: {
|
||||
minimizer: [
|
||||
new UglifyJSWebpackPlugin({
|
||||
parallel: true,
|
||||
cache: true,
|
||||
uglifyOptions: {
|
||||
mangle: false,
|
||||
"keep_fnames": true,
|
||||
}
|
||||
})
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue