You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
350 B

var gulp = require('gulp'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename');
gulp.task('scripts', function() {
return gulp.src('socket.js')
.pipe(rename('socket.min.js'))
.pipe(uglify({
preserveComments: 'some',
outSourceMap: true
}))
.pipe(gulp.dest('.'));
});
gulp.task('default', ['scripts']);