loleaflet: Separate source map files from the bundle
This commit is contained in:
parent
26ff7ce80e
commit
a28203424d
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue