summaryrefslogtreecommitdiff
path: root/webpack.config.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-11-13 23:10:51 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-11-13 23:10:51 +0900
commit212176ee5c9dd9629543ec7ec4eadb5a204180c0 (patch)
tree2dbeb9a74c0de7a3887208c0577b87745b12a8a4 /webpack.config.ts
parent[Client] Some optimizations (diff)
downloadsharkey-212176ee5c9dd9629543ec7ec4eadb5a204180c0.tar.gz
sharkey-212176ee5c9dd9629543ec7ec4eadb5a204180c0.tar.bz2
sharkey-212176ee5c9dd9629543ec7ec4eadb5a204180c0.zip
Use terser instead of uglifyjs
Diffstat (limited to 'webpack.config.ts')
-rw-r--r--webpack.config.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/webpack.config.ts b/webpack.config.ts
index b0d1a0d40f..fd552dd21a 100644
--- a/webpack.config.ts
+++ b/webpack.config.ts
@@ -9,6 +9,7 @@ const { VueLoaderPlugin } = require('vue-loader');
const WebpackOnBuildPlugin = require('on-build-webpack');
//const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
const ProgressBarPlugin = require('progress-bar-webpack-plugin');
+const TerserPlugin = require('terser-webpack-plugin');
const constants = require('./src/const.json');
@@ -146,6 +147,9 @@ module.exports = {
resolveLoader: {
modules: ['node_modules']
},
+ optimization: {
+ minimizer: [new TerserPlugin()]
+ },
cache: true,
devtool: false, //'source-map',
mode: isProduction ? 'production' : 'development'