mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
build(dev-deps): update to use terser instead of uglifyjs
This commit is contained in:
@@ -43,11 +43,11 @@
|
|||||||
"ws": "^6.0.0"
|
"ws": "^6.0.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
"@discordjs/uws": "^10.149.0",
|
||||||
"bufferutil": "^4.0.0",
|
"bufferutil": "^4.0.0",
|
||||||
"erlpack": "discordapp/erlpack",
|
"erlpack": "discordapp/erlpack",
|
||||||
"libsodium-wrappers": "^0.7.3",
|
"libsodium-wrappers": "^0.7.3",
|
||||||
"sodium": "^2.0.3",
|
"sodium": "^2.0.3",
|
||||||
"@discordjs/uws": "^10.149.0",
|
|
||||||
"zlib-sync": "^0.1.4"
|
"zlib-sync": "^0.1.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -55,10 +55,10 @@
|
|||||||
"discord.js-docgen": "discordjs/docgen",
|
"discord.js-docgen": "discordjs/docgen",
|
||||||
"eslint": "^5.4.0",
|
"eslint": "^5.4.0",
|
||||||
"json-filter-loader": "^1.0.0",
|
"json-filter-loader": "^1.0.0",
|
||||||
|
"terser-webpack-plugin": "^1.1.0",
|
||||||
"tslint": "^5.11.0",
|
"tslint": "^5.11.0",
|
||||||
"tslint-config-typings": "^0.3.1",
|
"tslint-config-typings": "^0.3.1",
|
||||||
"typescript": "^3.0.1",
|
"typescript": "^3.0.1",
|
||||||
"uglifyjs-webpack-plugin": "^1.3.0",
|
|
||||||
"webpack": "^4.17.0",
|
"webpack": "^4.17.0",
|
||||||
"webpack-cli": "^3.1.0"
|
"webpack-cli": "^3.1.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const webpack = require('webpack');
|
const webpack = require('webpack');
|
||||||
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
const TerserJSPlugin = require('terser-webpack-plugin');
|
||||||
const version = require('./package.json').version;
|
const version = require('./package.json').version;
|
||||||
|
|
||||||
const prod = process.env.NODE_ENV === 'production';
|
const prod = process.env.NODE_ENV === 'production';
|
||||||
@@ -46,12 +46,13 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
optimization: {
|
optimization: {
|
||||||
minimizer: [
|
minimizer: [
|
||||||
new UglifyJSPlugin({
|
new TerserJSPlugin({
|
||||||
uglifyOptions: {
|
terserOptions: {
|
||||||
mangle: { keep_classnames: true },
|
mangle: { keep_classnames: true },
|
||||||
compress: { keep_classnames: true },
|
compress: { keep_classnames: true },
|
||||||
output: { comments: false },
|
output: { comments: false },
|
||||||
},
|
},
|
||||||
|
parallel: true,
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user