{"action":"created","issue":{"url":"https://api.github.com/repos/smysnk/gulp-rev-all/issues/97","labels_url":"https://api.github.com/repos/smysnk/gulp-rev-all/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/smysnk/gulp-rev-all/issues/97/comments","events_url":"https://api.github.com/repos/smysnk/gulp-rev-all/issues/97/events","html_url":"https://github.com/smysnk/gulp-rev-all/issues/97","id":90093046,"number":97,"title":"Reference replacement mistake","user":{"login":"th0r","id":302213,"avatar_url":"https://avatars.githubusercontent.com/u/302213?v=3","gravatar_id":"","url":"https://api.github.com/users/th0r","html_url":"https://github.com/th0r","followers_url":"https://api.github.com/users/th0r/followers","following_url":"https://api.github.com/users/th0r/following{/other_user}","gists_url":"https://api.github.com/users/th0r/gists{/gist_id}","starred_url":"https://api.github.com/users/th0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/th0r/subscriptions","organizations_url":"https://api.github.com/users/th0r/orgs","repos_url":"https://api.github.com/users/th0r/repos","events_url":"https://api.github.com/users/th0r/events{/privacy}","received_events_url":"https://api.github.com/users/th0r/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-22T13:05:34Z","updated_at":"2015-11-03T03:24:19Z","closed_at":null,"body":"1) Make file `app.js` with the following code:\r\n```js\r\nvar el = document.getElementById('app');\r\n```\r\n2) Revision this script using `gulp` and the following task:\r\n```js\r\ngulp.task('hash-app', () => {\r\n    var RevAll = require('gulp-rev-all');\r\n    var revAll = new RevAll();\r\n\r\n    return gulp\r\n        .src('app.js')\r\n        .pipe(revAll.revision())\r\n        .pipe(gulp.dest('.'));\r\n});\r\n```\r\n3) As result `app.c8c8c872.js` file appears with the following content:\r\n```js\r\nvar app = document.getElementById('app.c8c8c872');\r\n```\r\n\r\nSeems like the plugin thinks that `'app'` in `document.getElementById('app')` is a reference and replaces it."},"comment":{"url":"https://api.github.com/repos/smysnk/gulp-rev-all/issues/comments/153230977","html_url":"https://github.com/smysnk/gulp-rev-all/issues/97#issuecomment-153230977","issue_url":"https://api.github.com/repos/smysnk/gulp-rev-all/issues/97","id":153230977,"user":{"login":"sixinli","id":4587468,"avatar_url":"https://avatars.githubusercontent.com/u/4587468?v=3","gravatar_id":"","url":"https://api.github.com/users/sixinli","html_url":"https://github.com/sixinli","followers_url":"https://api.github.com/users/sixinli/followers","following_url":"https://api.github.com/users/sixinli/following{/other_user}","gists_url":"https://api.github.com/users/sixinli/gists{/gist_id}","starred_url":"https://api.github.com/users/sixinli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sixinli/subscriptions","organizations_url":"https://api.github.com/users/sixinli/orgs","repos_url":"https://api.github.com/users/sixinli/repos","events_url":"https://api.github.com/users/sixinli/events{/privacy}","received_events_url":"https://api.github.com/users/sixinli/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T03:24:19Z","updated_at":"2015-11-03T03:24:19Z","body":"would love to have an easier way to only replace matches with file extension, but thanks for the example!"}}