From a28203424dc2d7fe76497c3847606600a583cd12 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Thu, 11 Aug 2016 16:28:04 +0530 Subject: [PATCH] loleaflet: Separate source map files from the bundle --- loleaflet/build/build.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/loleaflet/build/build.js b/loleaflet/build/build.js index b12c71fe5..00a613c27 100644 --- a/loleaflet/build/build.js +++ b/loleaflet/build/build.js @@ -3,6 +3,7 @@ var fs = require('fs'), zlib = require('zlib'), browserify = require('browserify'), browserifyCss = require('browserify-css'), + exorcist = require('exorcist'), deps = require('./deps.js').deps, adminDeps = require('./adminDeps.js').adminDeps; @@ -103,7 +104,7 @@ function bundle(files, destFilename, debug) { global: true }, 'uglifyify'); var bundleFs = fs.createWriteStream('dist/' + destFilename); - bundler.bundle().pipe(bundleFs); + bundler.bundle().pipe(exorcist('dist/' + destFilename + '.map')).pipe(bundleFs); bundleFs.on('finish', function() { console.log('Finish writing to dist/' + destFilename);