Fix debug in production webpack (same change made on dweb-transports dweb-objects and dweb-archive)

This commit is contained in:
Mitra Ardron 2018-08-16 10:49:01 +10:00
parent 2ec151a008
commit d84e5468d8
2 changed files with 22 additions and 17 deletions

View File

@ -49,5 +49,5 @@
"test": "cd src; node ./test.js",
"help": "echo 'test (test it)'; echo 'build (creates dweb-transports-bundle)'"
},
"version": "0.1.12"
"version": "0.1.13"
}

View File

@ -25,13 +25,18 @@ module.exports = {
zlib: 'browserify-zlib-next'
}
},
plugins: [
optimization: {
minimizer: [
new UglifyJsPlugin({
uglifyOptions: {
compress: {
unused: false
unused: false,
collapse_vars: false // debug has a problem in production without this.
}
//compress: false
}
})
]
}
}