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
This commit is contained in:
Jeff Avallone 2015-01-19 09:58:51 -05:00
parent 66c9d445da
commit 66b3c76f9a
2 changed files with 3 additions and 13 deletions

View File

@ -68,10 +68,7 @@ gulp.task('compass', function() {
gulp.task('browserify', function() { gulp.task('browserify', function() {
var browserify = require('browserify'), var browserify = require('browserify'),
exorcist = require('exorcist'), tap = require('gulp-tap');
tap = require('gulp-tap'),
transform = require('vinyl-transform'),
mold = require('mold-source-map');
return gulp.src('./src/js/main.js', { read: false }) return gulp.src('./src/js/main.js', { read: false })
.pipe(errorHandler()) .pipe(errorHandler())
@ -82,11 +79,7 @@ gulp.task('browserify', function() {
bundler.add(file.path); bundler.add(file.path);
file.contents = bundler.bundle() file.contents = bundler.bundle();
.pipe(mold.transformSourcesRelativeTo('./'));
}))
.pipe(transform(function() {
return exorcist(config.buildPath('js/main.js.map'));
})) }))
.pipe(gulp.dest(config.buildPath('js'))); .pipe(gulp.dest(config.buildPath('js')));
}); });

View File

@ -13,7 +13,6 @@
"browserify": "^6.3.2", "browserify": "^6.3.2",
"canopy": "^0.2.0", "canopy": "^0.2.0",
"es6ify": "^1.5.1", "es6ify": "^1.5.1",
"exorcist": "^0.1.6",
"gulp": "^3.8.10", "gulp": "^3.8.10",
"gulp-compass": "^2.0.3", "gulp-compass": "^2.0.3",
"gulp-connect": "^2.2.0", "gulp-connect": "^2.2.0",
@ -28,10 +27,8 @@
"karma-jasmine": "^0.3.1", "karma-jasmine": "^0.3.1",
"karma-notify-reporter": "^0.1.1", "karma-notify-reporter": "^0.1.1",
"lodash": "^2.4.1", "lodash": "^2.4.1",
"mold-source-map": "^0.3.0",
"q": "^1.1.2", "q": "^1.1.2",
"snapsvg": "git://github.com/adobe-webplatform/Snap.svg#dev", "snapsvg": "git://github.com/adobe-webplatform/Snap.svg#dev",
"through": "^2.3.6", "through": "^2.3.6"
"vinyl-transform": "^1.0.0"
} }
} }