mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-29 03:31:53 +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('./'));
|
||
|
});
|