{"action":"created","issue":{"url":"https://api.github.com/repos/smysnk/gulp-rev-all/issues/56","labels_url":"https://api.github.com/repos/smysnk/gulp-rev-all/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/smysnk/gulp-rev-all/issues/56/comments","events_url":"https://api.github.com/repos/smysnk/gulp-rev-all/issues/56/events","html_url":"https://github.com/smysnk/gulp-rev-all/issues/56","id":53648453,"number":56,"title":"Reflect changes in source maps","user":{"login":"bbrouwer","id":263089,"avatar_url":"https://avatars.githubusercontent.com/u/263089?v=3","gravatar_id":"","url":"https://api.github.com/users/bbrouwer","html_url":"https://github.com/bbrouwer","followers_url":"https://api.github.com/users/bbrouwer/followers","following_url":"https://api.github.com/users/bbrouwer/following{/other_user}","gists_url":"https://api.github.com/users/bbrouwer/gists{/gist_id}","starred_url":"https://api.github.com/users/bbrouwer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbrouwer/subscriptions","organizations_url":"https://api.github.com/users/bbrouwer/orgs","repos_url":"https://api.github.com/users/bbrouwer/repos","events_url":"https://api.github.com/users/bbrouwer/events{/privacy}","received_events_url":"https://api.github.com/users/bbrouwer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-07T16:08:47Z","updated_at":"2015-01-07T21:51:14Z","closed_at":null,"body":"I love how gulp-rev-all does a terrific job of setting up cache-busting for my app. I also love source maps. Unfortunately, when gulp-rev-all changes my `app.css`, the corresponding `app.css.map` no longer matches the contents of `app.css`. \r\n\r\nIt would be nice if gulp-rev-all understood source maps, detecting when a file has a `//# sourceMappingURL=app.js.map` or `/*# sourceMappingURL=app.css.map */` and then update the corresponding app.js.map or app.css.map appropriately. "},"comment":{"url":"https://api.github.com/repos/smysnk/gulp-rev-all/issues/comments/69098682","html_url":"https://github.com/smysnk/gulp-rev-all/issues/56#issuecomment-69098682","issue_url":"https://api.github.com/repos/smysnk/gulp-rev-all/issues/56","id":69098682,"user":{"login":"bbrouwer","id":263089,"avatar_url":"https://avatars.githubusercontent.com/u/263089?v=3","gravatar_id":"","url":"https://api.github.com/users/bbrouwer","html_url":"https://github.com/bbrouwer","followers_url":"https://api.github.com/users/bbrouwer/followers","following_url":"https://api.github.com/users/bbrouwer/following{/other_user}","gists_url":"https://api.github.com/users/bbrouwer/gists{/gist_id}","starred_url":"https://api.github.com/users/bbrouwer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbrouwer/subscriptions","organizations_url":"https://api.github.com/users/bbrouwer/orgs","repos_url":"https://api.github.com/users/bbrouwer/repos","events_url":"https://api.github.com/users/bbrouwer/events{/privacy}","received_events_url":"https://api.github.com/users/bbrouwer/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T21:51:14Z","updated_at":"2015-01-07T21:51:14Z","body":"I don't think doing what you suggest is reasonable. For example, in my case the app.css is being generated using gulp-less. That would mean that gulp-rev-all would have to be replacing references in the .less files, which I'm pretty sure it doesn't do. Furthermore, at this point, the index.html is not pointing at app.less, it is pointing at app.css. I don't see how I could get gulp-rev-all to correctly rev my index.html. \r\n\r\nAs for .js files, I am concatenating a bunch of .js files together into app.js. Again, index.html references app.js, which doesn't event exist at the point you suggest running gulp-rev-all. So again, index.html won't correctly replace the reference to app.js. \r\n\r\nOr if you are suggesting that I do all the concatenation and less compilation first, then run gulp-rev-all, and finally finish up with minification. That also doesn't get me what I'm looking for. I would have to not use source maps for the less compilation and .js concatenation, and then turn on source maps for the final minification step after gulp-rev-all. In this scenario the source maps don't actually reference the original sources anymore. \r\n\r\nThere are other ways I have considered to slice and dice this, but none of them actually get me a source map that points to the actual sources in a valid way.\r\n\r\nI realize that this is not a trivial request, but it really don't know of a better place to solve this without throwing out gulp-rev-all completely and trying something with gulp-rev. I tried gulp-rev before and gulp-rev-all is a much more complete solution in my opinion. "}}