Skip to content

Commit bff3d3d

Browse files
committed
Create gulpfile.js
1 parent 20c859f commit bff3d3d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

gulpfile.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
var gulp = require('gulp');
2+
var uglify = require('gulp-uglify');
3+
var rename = require('gulp-rename');
4+
5+
6+
gulp.task('uglify', function() {
7+
gulp.src('src.js')
8+
.pipe(uglify())
9+
.pipe(rename(function (path) {
10+
path.extname = ".min.js"
11+
}))
12+
.pipe(gulp.dest('dist'))
13+
});
14+
15+
gulp.task('default', ['uglify']);

0 commit comments

Comments
 (0)