mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-25 07:28:40 +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('./'));
|
||
|
});
|