From 66b3c76f9a03759e39a082a4af255a44e68b9d76 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Mon, 19 Jan 2015 09:58:51 -0500 Subject: [PATCH] No longer extracting the sourcemap from the compiled JS It has been causing some minor issues in local dev for a while, and doesn't add much in production since the sourceMap comments are removed by the pagespeed mod --- gulpfile.js | 11 ++--------- package.json | 5 +---- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 8f2fba6..eed7008 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -68,10 +68,7 @@ gulp.task('compass', function() { gulp.task('browserify', function() { var browserify = require('browserify'), - exorcist = require('exorcist'), - tap = require('gulp-tap'), - transform = require('vinyl-transform'), - mold = require('mold-source-map'); + tap = require('gulp-tap'); return gulp.src('./src/js/main.js', { read: false }) .pipe(errorHandler()) @@ -82,11 +79,7 @@ gulp.task('browserify', function() { bundler.add(file.path); - file.contents = bundler.bundle() - .pipe(mold.transformSourcesRelativeTo('./')); - })) - .pipe(transform(function() { - return exorcist(config.buildPath('js/main.js.map')); + file.contents = bundler.bundle(); })) .pipe(gulp.dest(config.buildPath('js'))); }); diff --git a/package.json b/package.json index c4e4d17..1d29176 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,6 @@ "browserify": "^6.3.2", "canopy": "^0.2.0", "es6ify": "^1.5.1", - "exorcist": "^0.1.6", "gulp": "^3.8.10", "gulp-compass": "^2.0.3", "gulp-connect": "^2.2.0", @@ -28,10 +27,8 @@ "karma-jasmine": "^0.3.1", "karma-notify-reporter": "^0.1.1", "lodash": "^2.4.1", - "mold-source-map": "^0.3.0", "q": "^1.1.2", "snapsvg": "git://github.com/adobe-webplatform/Snap.svg#dev", - "through": "^2.3.6", - "vinyl-transform": "^1.0.0" + "through": "^2.3.6" } }