Skip to content

Commit b05beef

Browse files
committed
pass extra options to uglify for sourcemap
1 parent 65efc42 commit b05beef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tasks/util/browserify_wrapper.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ module.exports = function _bundle(pathToIndex, pathToBundle, opts, cb) {
7070
ascii_only: true
7171
},
7272

73-
sourceMap: !!sourceMap
73+
sourceMap: sourceMap ? {
74+
root: '/',
75+
filename: path.basename(sourceMap)
76+
} : false
7477
};
7578

7679
if(sourceMap) {

0 commit comments

Comments
 (0)