fix sourcemaps

This commit is contained in:
Michael Barrett 2015-05-05 10:31:15 +01:00
parent ba2014d106
commit 23d83d5b01
2 changed files with 5 additions and 2 deletions

View File

@ -55,11 +55,13 @@ gulp.task('build:browserify', function() {
});
gulp.task('build:minify', function () {
return gulp.src('./build/timestring.js')
return gulp.src('./dist/timestring.js')
.pipe($.sourcemaps.init({ loadMaps: true }))
.pipe($.uglify())
.pipe($.rename({
extname: '.min.js'
}))
.pipe($.sourcemaps.write())
.pipe(gulp.dest('dist'));
});

File diff suppressed because one or more lines are too long