Skip to content

Commit

Permalink
revert to preview pack and change build script
Browse files Browse the repository at this point in the history
  • Loading branch information
soliury committed Apr 29, 2020
1 parent 0647568 commit 04aa9a6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 22 deletions.
8 changes: 2 additions & 6 deletions bin/build.sh
Original file line number Diff line number Diff line change
@@ -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 =================";
Expand Down
32 changes: 16 additions & 16 deletions pack/webpack/prod.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
]
}
};

0 comments on commit 04aa9a6

Please sign in to comment.