diff --git a/bin/build.sh b/bin/build.sh index 9001a1705..40882d75f 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -1,14 +1,10 @@ +#!/bin/bash +set -e echo "Start building"; handle=$1; isClear=$2; -# Pull and clear and install -git checkout revert - -echo "Pull =============="; -git pull - if [ "$isClear"X == "clear"X ] then echo "Delete node_modules ================="; diff --git a/pack/webpack/prod.config.js b/pack/webpack/prod.config.js index 2ecbd4a6d..e7e642cd7 100644 --- a/pack/webpack/prod.config.js +++ b/pack/webpack/prod.config.js @@ -4,22 +4,22 @@ module.exports = { mode: 'production', optimization: { minimizer: [ - // new UglifyJsPlugin({ - // cache: true, - // parallel: true, - // uglifyOptions: { - // compress: { - // // collapse_vars: true, - // // reduce_vars: true, - // unused: true, - // drop_console: true, - // drop_debugger: true - // }, - // output: { comments: false } - // }, - // extractComments: true, - // sourceMap: false - // }) + new UglifyJsPlugin({ + cache: true, + parallel: true, + uglifyOptions: { + compress: { + // collapse_vars: true, + // reduce_vars: true, + unused: true, + drop_console: true, + drop_debugger: true + }, + output: { comments: false } + }, + extractComments: true, + sourceMap: false + }) ] } };