From e5a0ecc0fa386a124b34d1400a1248ecf59b6b65 Mon Sep 17 00:00:00 2001 From: josdejong Date: Sat, 18 Jan 2014 10:51:45 +0100 Subject: [PATCH] Added outSourceMap (but doesn't work) --- gulpfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 61477395f..c433196ac 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -11,7 +11,7 @@ var fs = require('fs'), gulp.task('build', function() { gulp.src(['./index.js'], {read: false}) // read false because browserify doesn't support streams when using standalone .pipe(browserify({ - standalone: 'mathjs' // TODO: standalone not supported when using streams + standalone: 'mathjs' })) .pipe(replace('@@date', today())) @@ -21,6 +21,7 @@ gulp.task('build', function() { .pipe(gulp.dest('./dist')) .pipe(uglify({ + outSourceMap: './math.js.map', // FIXME: source map seems not to work output: { comments: /@license/ }