Skip to content

Commit cbb431e

Browse files
committed
externalize the source map file
1 parent ba00b93 commit cbb431e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tasks/util/browserify_wrapper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ var browserify = require('browserify');
55
var minify = require('minify-stream');
66
var derequire = require('derequire');
77
var through = require('through2');
8+
var exorcist = require('exorcist');
89

910
var constants = require('./constants');
1011
var strictD3 = require('./strict_d3');
@@ -81,6 +82,7 @@ module.exports = function _bundle(pathToIndex, pathToBundle, opts, cb) {
8182
if(pathToBundle) {
8283
bundleStream
8384
.pipe(applyDerequire())
85+
.pipe(exorcist(pathToBundle + '.map'))
8486
.pipe(fs.createWriteStream(pathToBundle))
8587
.on('finish', function() {
8688
logger(pathToBundle);

0 commit comments

Comments
 (0)