update HMAC test after merge and add loader to allow external uglifyjs plugin to work for node builds

This commit is contained in:
d98762625 2018-11-09 14:19:27 +00:00
parent 97255bbb33
commit b19f8f65a4
5 changed files with 578 additions and 42 deletions

View file

@ -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,
}
})
]