mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-30 00:26:21 +00:00
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('./'));
|
||
|
});
|