deps: switch to new uglifyjs plugin.

This commit is contained in:
Christopher Jeffrey 2017-07-06 22:25:41 -07:00
parent b570769eed
commit 8451fab965
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
3 changed files with 6 additions and 5 deletions

View File

@ -47,7 +47,7 @@
"level-js": "^2.2.4", "level-js": "^2.2.4",
"mocha": "^3.4.1", "mocha": "^3.4.1",
"node-loader": "^0.6.0", "node-loader": "^0.6.0",
"uglify-es-webpack-plugin": "^0.0.2", "uglifyjs-webpack-plugin": "^1.0.0-beta.1",
"webpack": "^3.0.0" "webpack": "^3.0.0"
}, },
"main": "./lib/bcoin.js", "main": "./lib/bcoin.js",

View File

@ -2,7 +2,7 @@
const webpack = require('webpack') const webpack = require('webpack')
const path = require('path'); const path = require('path');
const UglifyEsPlugin = require('uglify-es-webpack-plugin'); const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const str = JSON.stringify; const str = JSON.stringify;
const env = process.env; const env = process.env;
@ -29,6 +29,6 @@ module.exports = {
'process.env.BCOIN_MASTER_URL': 'process.env.BCOIN_MASTER_URL':
str(env.BCOIN_MASTER_URL || '/bcoin-master.js') str(env.BCOIN_MASTER_URL || '/bcoin-master.js')
}), }),
new UglifyEsPlugin() new UglifyJsPlugin()
] ]
}; };

View File

@ -2,7 +2,7 @@
const webpack = require('webpack') const webpack = require('webpack')
const path = require('path'); const path = require('path');
const UglifyEsPlugin = require('uglify-es-webpack-plugin'); const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const str = JSON.stringify; const str = JSON.stringify;
const env = process.env; const env = process.env;
@ -39,6 +39,7 @@ module.exports = {
'process.env.BCOIN_WORKER_FILE': 'process.env.BCOIN_WORKER_FILE':
str(env.BCOIN_WORKER_FILE || 'bcoin-worker.js') str(env.BCOIN_WORKER_FILE || 'bcoin-worker.js')
}), }),
new UglifyEsPlugin() new webpack.IgnorePlugin(/^utf-8-validate|bufferutil$/),
new UglifyJsPlugin()
] ]
}; };