{"action":"created","issue":{"url":"https://api.github.com/repos/gulpjs/gulp/issues/1362","labels_url":"https://api.github.com/repos/gulpjs/gulp/issues/1362/labels{/name}","comments_url":"https://api.github.com/repos/gulpjs/gulp/issues/1362/comments","events_url":"https://api.github.com/repos/gulpjs/gulp/issues/1362/events","html_url":"https://github.com/gulpjs/gulp/issues/1362","id":114345333,"number":1362,"title":"Browserify sourcemaps contains only the sourcemap of the bundle and not the browserified files","user":{"login":"inf3rno","id":408911,"avatar_url":"https://avatars.githubusercontent.com/u/408911?v=3","gravatar_id":"","url":"https://api.github.com/users/inf3rno","html_url":"https://github.com/inf3rno","followers_url":"https://api.github.com/users/inf3rno/followers","following_url":"https://api.github.com/users/inf3rno/following{/other_user}","gists_url":"https://api.github.com/users/inf3rno/gists{/gist_id}","starred_url":"https://api.github.com/users/inf3rno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inf3rno/subscriptions","organizations_url":"https://api.github.com/users/inf3rno/orgs","repos_url":"https://api.github.com/users/inf3rno/repos","events_url":"https://api.github.com/users/inf3rno/events{/privacy}","received_events_url":"https://api.github.com/users/inf3rno/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-30T19:59:22Z","updated_at":"2015-11-02T11:38:58Z","closed_at":"2015-10-30T20:07:54Z","body":"By the recipe: https://github.com/gulpjs/gulp/blob/master/docs/recipes/browserify-uglify-sourcemap.md the sourcemap contains the bundle and not the source files, so it is harder to debug. In firebug the line and col was not translated to the bundle.  In firefox console the sourcemaps are not working as far as I can tell."},"comment":{"url":"https://api.github.com/repos/gulpjs/gulp/issues/comments/152995310","html_url":"https://github.com/gulpjs/gulp/issues/1362#issuecomment-152995310","issue_url":"https://api.github.com/repos/gulpjs/gulp/issues/1362","id":152995310,"user":{"login":"inf3rno","id":408911,"avatar_url":"https://avatars.githubusercontent.com/u/408911?v=3","gravatar_id":"","url":"https://api.github.com/users/inf3rno","html_url":"https://github.com/inf3rno","followers_url":"https://api.github.com/users/inf3rno/followers","following_url":"https://api.github.com/users/inf3rno/following{/other_user}","gists_url":"https://api.github.com/users/inf3rno/gists{/gist_id}","starred_url":"https://api.github.com/users/inf3rno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inf3rno/subscriptions","organizations_url":"https://api.github.com/users/inf3rno/orgs","repos_url":"https://api.github.com/users/inf3rno/repos","events_url":"https://api.github.com/users/inf3rno/events{/privacy}","received_events_url":"https://api.github.com/users/inf3rno/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T11:38:58Z","updated_at":"2015-11-02T11:38:58Z","body":"@callumacrae Can you copy the code here? I have something like this:\r\n```js\r\nvar browserify = require(\"browserify\"),\r\n    source = require(\"vinyl-source-stream\"),\r\n    buffer = require(\"vinyl-buffer\"),\r\n    uglify = require(\"gulp-uglify\"),\r\n    gulp = require(\"gulp\"),\r\n    globby = require(\"globby\"),\r\n    sourcemaps = require(\"gulp-sourcemaps\");\r\n\r\nmodule.exports = function () {\r\n    return browserify({\r\n        entries: globby.sync([\"index.js\", \"src/**/*.js\"])\r\n    })\r\n        .bundle()\r\n        .pipe(source(\"bundle.js\"))\r\n        .pipe(buffer())\r\n        .pipe(sourcemaps.init({\r\n            loadMaps: true\r\n        }))\r\n        .pipe(uglify())\r\n        .pipe(sourcemaps.write(\"./\"))\r\n        .pipe(gulp.dest(\"dist\"));\r\n};\r\n```\r\nI want to debug the files in the src/*, but I got only the browserify bundle (before uglify) in firebug and I got the line number of the uglified version, so always line 1. It does not work in the console of firefox and chrome. It's a surprise, but in the msie console it works better, it shows the actual line of the browserify bundle, but still not the src files. In opera it works the same way."}}