From 23d83d5b01de6c97f8477b8bf81147fd4adcff79 Mon Sep 17 00:00:00 2001 From: Michael Barrett Date: Tue, 5 May 2015 10:31:15 +0100 Subject: [PATCH] fix sourcemaps --- Gulpfile.js | 4 +++- dist/timestring.min.js | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Gulpfile.js b/Gulpfile.js index 32e5b1a..a6a9889 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -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')); }); diff --git a/dist/timestring.min.js b/dist/timestring.min.js index a2cf6a9..d0db6d4 100644 --- a/dist/timestring.min.js +++ b/dist/timestring.min.js @@ -1 +1,2 @@ -"use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function t(t,e){for(var s=0;s