mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-27 05:26:23 +00:00
4d2b0735dc
Update from vfleaking/uoj upstream, commit aa8a85c - 9f1302c. Because of this repo's modify, also with the adaption of community version.
15 lines
333 B
JavaScript
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('./'));
|
|
});
|