添加了编译流程;

This commit is contained in:
袁涛
2025-08-13 12:33:49 +08:00
parent 3f9dbff91e
commit 9017753f56
6 changed files with 2809 additions and 162 deletions

25
gulpfile.js Normal file
View File

@@ -0,0 +1,25 @@
const gulp = require('gulp')
const chinese2unicode = require('gulp-chinese2unicode')
const gulpTerser = require('gulp-terser')
// 构建
gulp.task('minify', async () => {
console.log('开始构建...')
gulp
.src('index.js')
.pipe(
gulpTerser({
mangle: {
properties: true,
},
format: {
ascii_only: true,
},
})
)
.pipe(chinese2unicode())
.on('data', function () {
console.log('构建完成!')
})
.pipe(gulp.dest('./src/'))
})