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