From 3ebbac5de36ecec9a11cf4e96bae6ad4a29edb5f Mon Sep 17 00:00:00 2001 From: jiaming743 <743192023@qq.com> Date: Tue, 10 Sep 2019 15:10:36 +0800 Subject: [PATCH] update auto build process --- build/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build/index.js b/build/index.js index 0028b6d..84ee7f0 100644 --- a/build/index.js +++ b/build/index.js @@ -77,15 +77,15 @@ async function start () { print.tip('After rollupCompile') - // const uglifyjs = await exec(`uglifyjs dist/${libName}.map.js -o dist/${libName}.min.js`) + const terser = await exec(`rollup -c build/rollup.terser.config.js`) - // if (!uglifyjs) { - // print.error('Exception in uglifyjs') + if (!terser) { + print.error('Exception in terser') - // return - // } + return + } - // print.tip('After uglifyjs') + print.tip('After terser') print.yellow('-------------------------------------') print.success(' DataV Lib Compile Success! ')