Skip to content

Commit bcb7967

Browse files
committed
improve config
1 parent fc25200 commit bcb7967

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/util/browserify_wrapper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = function _bundle(pathToIndex, pathToBundle, opts, cb) {
3636
var browserifyOpts = {};
3737
browserifyOpts.standalone = opts.standalone;
3838
var sourceMap = opts.pathToSourceMap;
39-
browserifyOpts.debug = opts.debug || sourceMap;
39+
browserifyOpts.debug = opts.debug || !!sourceMap;
4040

4141
if(opts.noCompress) {
4242
browserifyOpts.ignoreTransform = './tasks/compress_attributes.js';
@@ -71,14 +71,14 @@ module.exports = function _bundle(pathToIndex, pathToBundle, opts, cb) {
7171
},
7272

7373
sourceMap: sourceMap ? {
74+
includeSources: true,
7475
root: '/',
7576
filename: path.basename(pathToMinBundle)
7677
} : false
7778
};
7879

7980
if(sourceMap) {
8081
bundleStream
81-
.pipe(applyDerequire())
8282
.pipe(minify(minifyOpts))
8383
.pipe(exorcist(sourceMap))
8484
.pipe(fs.createWriteStream(pathToMinBundle))

0 commit comments

Comments
 (0)