S2OJ/uoj/1/js/readmore/gulpfile.js
vfleaking 4d2b0735dc update: fetch commits from upstream
Update from vfleaking/uoj upstream, commit aa8a85c - 9f1302c.
Because of this repo's modify, also with the adaption of community version.
2018-09-20 19:34:38 +08:00

15 lines
333 B
JavaScript

var gulp = require('gulp'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename');
gulp.task('compress', function() {
gulp.src('readmore.js')
.pipe(uglify({
mangle: true,
compress: true,
preserveComments: 'some'
}))
.pipe(rename('readmore.min.js'))
.pipe(gulp.dest('./'));
});