diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 0000000..4a76723 --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,15 @@ +var gulp = require('gulp'); +var uglify = require('gulp-uglify'); +var rename = require('gulp-rename'); + + +gulp.task('uglify', function() { + gulp.src('src.js') + .pipe(uglify()) + .pipe(rename(function (path) { + path.extname = ".min.js" + })) + .pipe(gulp.dest('dist')) +}); + +gulp.task('default', ['uglify']);