Add missing '.min' in compressed JS files

This commit is contained in:
Hyunje Alex Jun 2015-10-03 21:48:02 +09:00
parent d6ede33202
commit 4aa28add99

View File

@ -65,9 +65,9 @@ gulp.task('js:min', ['clean:js:min'], function () {
.pipe(insert.prepend(version)) .pipe(insert.prepend(version))
.pipe(rename(function (path) { .pipe(rename(function (path) {
if (path.basename === 'global') { if (path.basename === 'global') {
path.basename = 'perfect-scrollbar'; path.basename = 'perfect-scrollbar.min';
} else { } else {
path.basename = 'perfect-scrollbar.' + path.basename; path.basename = 'perfect-scrollbar.' + path.basename + '.min';
} }
})) }))
.pipe(gulp.dest('./dist/js/min')) .pipe(gulp.dest('./dist/js/min'))