mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-05 16:08:42 +00:00
96d4a3ecf7
Due to historical reasons, the code is in subfolder "1". With SVN removal, we place the code back and remove the annoying "1" folder.
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('./'));
|
|
});
|