From c5b0fcad47b972ca9dafb2fea363c36b594f6b2d Mon Sep 17 00:00:00 2001 From: cdswyda Date: Wed, 21 Jul 2021 10:18:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(gulpfile):=20=E5=AE=8C=E5=96=84=E6=89=93?= =?UTF-8?q?=E5=8C=85=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. production 时自动压缩 2. 新增 banner target 配置 --- gulpfile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 39231ec..f7823fd 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -222,7 +222,9 @@ async function core() { globalName: 'luckysheet', entryPoints: ['src/index.js'], bundle: true, - // minify: true, + minify: production, + banner: { js: banner }, + target: ['es2015'], sourcemap: true, outfile: 'dist/luckysheet.umd.js', logLevel: 'error',