{"action":"created","issue":{"url":"https://api.github.com/repos/klei/gulp-inject/issues/28","repository_url":"https://api.github.com/repos/klei/gulp-inject","labels_url":"https://api.github.com/repos/klei/gulp-inject/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/klei/gulp-inject/issues/28/comments","events_url":"https://api.github.com/repos/klei/gulp-inject/issues/28/events","html_url":"https://github.com/klei/gulp-inject/issues/28","id":33830745,"number":28,"title":"Can't remove beginning of injected path using 'IgnorePath'","user":{"login":"mikefisher84","id":3388961,"avatar_url":"https://avatars.githubusercontent.com/u/3388961?v=3","gravatar_id":"","url":"https://api.github.com/users/mikefisher84","html_url":"https://github.com/mikefisher84","followers_url":"https://api.github.com/users/mikefisher84/followers","following_url":"https://api.github.com/users/mikefisher84/following{/other_user}","gists_url":"https://api.github.com/users/mikefisher84/gists{/gist_id}","starred_url":"https://api.github.com/users/mikefisher84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikefisher84/subscriptions","organizations_url":"https://api.github.com/users/mikefisher84/orgs","repos_url":"https://api.github.com/users/mikefisher84/repos","events_url":"https://api.github.com/users/mikefisher84/events{/privacy}","received_events_url":"https://api.github.com/users/mikefisher84/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":32,"created_at":"2014-05-19T19:50:34Z","updated_at":"2016-05-05T13:33:38Z","closed_at":"2014-07-23T16:29:10Z","body":"I'm trying to have gulp-inject, inject a bunch of JS files in my app. \r\n\r\nMy folder structure looks like this\r\n\r\n```\r\ngulpfile.js\r\napp/\r\n    scripts/\r\n    index.html\r\n```\r\n\r\nThe file comments that get injected look like this. \r\n`<script src=\"/app/scripts/app.js\"></script>`\r\n\r\nHowever I need to remove the /app/ so the index.html file loads the .js files properly. \r\nI've tried adding this  `{ignorePath: 'app'}` but it doesn't seem to remove it from the inject comments. \r\n\r\nAny ideas?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/klei/gulp-inject/issues/comments/217155592","html_url":"https://github.com/klei/gulp-inject/issues/28#issuecomment-217155592","issue_url":"https://api.github.com/repos/klei/gulp-inject/issues/28","id":217155592,"user":{"login":"vittal288","id":3775684,"avatar_url":"https://avatars.githubusercontent.com/u/3775684?v=3","gravatar_id":"","url":"https://api.github.com/users/vittal288","html_url":"https://github.com/vittal288","followers_url":"https://api.github.com/users/vittal288/followers","following_url":"https://api.github.com/users/vittal288/following{/other_user}","gists_url":"https://api.github.com/users/vittal288/gists{/gist_id}","starred_url":"https://api.github.com/users/vittal288/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vittal288/subscriptions","organizations_url":"https://api.github.com/users/vittal288/orgs","repos_url":"https://api.github.com/users/vittal288/repos","events_url":"https://api.github.com/users/vittal288/events{/privacy}","received_events_url":"https://api.github.com/users/vittal288/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T13:33:38Z","updated_at":"2016-05-05T13:33:38Z","body":" ```\r\ngulp.src('./index.html')\r\n  .pipe(inject(gulp.src('lib/**/*.js',{cwd: 'dist/'}, {read: false}), {name: 'libs'},{relative: false}))\r\n  .pipe(inject(gulp.src('scripts/**/*.js',{cwd: 'dist/'}, {read: false}), {name: 'customScripts'},{relative: false}))  \r\n  .pipe(gulp.dest('./dist'));\r\n```\r\n\r\nHave added CWD object as current target directory name and removed \"dist\" from source file"}}