Updated packages:
"colors": "~1.4.0",
"compression": "~1.7.4",
"debug": "^4.1.1",
"express": "~4.17.1",
"express-session": "~1.17.0",
"socket.io": "2.2.0",
"ssh2": "~0.8.6",
"terser-webpack-plugin": "^2.2.1",
"validator": "~12.0.0",
"xterm-addon-fit": "^0.3.0",
"xterm-addon-search": "^0.3.0",
"xterm-addon-web-links": "^0.2.1"
"@fortawesome/fontawesome-svg-core": "^1.2.25",
"@fortawesome/free-solid-svg-icons": "^5.11.2",
"clean-webpack-plugin": "^3.0.0",
"copy-webpack-plugin": "^5.0.5",
"cross-env": "^6.0.3",
"css-loader": "^3.2.0",
"file-loader": "^4.2.0",
"postcss-discard-comments": "^4.0.2",
"standard": "^14.3.1",
"style-loader": "^1.0.0",
"url-loader": "^2.2.0",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.10",
"webpack-merge": "^4.2.2",
"xterm": "^4.2.0"
29 lines
No EOL
578 B
JavaScript
29 lines
No EOL
578 B
JavaScript
const TerserPlugin = require('terser-webpack-plugin');
|
|
const merge = require('webpack-merge')
|
|
// const UglifyJSPlugin = require('uglifyjs-webpack-plugin')
|
|
const common = require('./webpack.common.js')
|
|
|
|
module.exports = merge(common, {
|
|
optimization: {
|
|
minimize: true,
|
|
minimizer: [new TerserPlugin({
|
|
terserOptions: {
|
|
parallel: 4,
|
|
ie8: false,
|
|
safari10: false
|
|
}
|
|
})],
|
|
}
|
|
})
|
|
|
|
|
|
/* new UglifyJSPlugin({
|
|
uglifyOptions: {
|
|
ie8: false,
|
|
dead_code: true,
|
|
output: {
|
|
comments: false,
|
|
beautify: false
|
|
}
|
|
}
|
|
}) */ |