1 Star 0 Fork 45

铁憨憨 / ThinkTs

forked from Asciphx / ThinkTs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
gulpfile.js 702 Bytes
一键复制 编辑 原始数据 按行查看 历史
Asciphx 提交于 2021-02-18 16:38 . catalog
const gulp = require('gulp');
const $ = require('gulp-terser');
const ts = require('gulp-typescript');
const _ = ts.createProject("tsconfig.json")
gulp.task('build', () =>
_.src().pipe(_()).js
.pipe($({
ecma:2020,
mangle: {
eval: false,
keep_fnames: true,
toplevel: true,
keep_classnames:true,
properties: false
},compress:{
properties:false,
toplevel: true,
keep_classnames:true,
keep_fnames:false,
inline:true,
drop_debugger:true,
dead_code:true,
drop_console:true
}
}))
.pipe(gulp.dest('build'))
);//drop_console设置为true可以禁用gulp打包的那些文件的console.log,小幅提升速度
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/jiabaiwan_shukaizhe/ThinkTs.git
git@gitee.com:jiabaiwan_shukaizhe/ThinkTs.git
jiabaiwan_shukaizhe
ThinkTs
ThinkTs
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891