{"action":"created","issue":{"url":"https://api.github.com/repos/jonkemp/gulp-useref/issues/139","labels_url":"https://api.github.com/repos/jonkemp/gulp-useref/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/jonkemp/gulp-useref/issues/139/comments","events_url":"https://api.github.com/repos/jonkemp/gulp-useref/issues/139/events","html_url":"https://github.com/jonkemp/gulp-useref/issues/139","id":111916747,"number":139,"title":"additonalStreams not merging streams","user":{"login":"Kikketer","id":958042,"avatar_url":"https://avatars.githubusercontent.com/u/958042?v=3","gravatar_id":"","url":"https://api.github.com/users/Kikketer","html_url":"https://github.com/Kikketer","followers_url":"https://api.github.com/users/Kikketer/followers","following_url":"https://api.github.com/users/Kikketer/following{/other_user}","gists_url":"https://api.github.com/users/Kikketer/gists{/gist_id}","starred_url":"https://api.github.com/users/Kikketer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kikketer/subscriptions","organizations_url":"https://api.github.com/users/Kikketer/orgs","repos_url":"https://api.github.com/users/Kikketer/repos","events_url":"https://api.github.com/users/Kikketer/events{/privacy}","received_events_url":"https://api.github.com/users/Kikketer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-16T21:46:53Z","updated_at":"2015-10-19T17:33:10Z","closed_at":"2015-10-19T17:28:47Z","body":"I may just be missing something but I have my setup attempting to merge the output of the angular-templateCache stream with the assets stream.  If I make the templateStream spit out to a destination, it produces a single JS file.  I assume I can take the output of that stream and add it into the assets to be included into the assets stream.\r\n\r\n````\r\ngulp.task('usemin:dist', ['clean:dist'], function() {\r\n  var templatesStream = gulp.src([\r\n    './app/**/*.html',\r\n    '!./app/index.html',\r\n    '!./app/404.html'\r\n  ]).pipe(templateCache({\r\n    module: 'myCoolApp'\r\n  }));\r\n\r\n  var assets = $useref.assets({\r\n    additionalStreams: [templatesStream]\r\n  });\r\n\r\n  return gulp.src('./app/index.html')\r\n    .pipe(assets)\r\n    .pipe(assets.restore())\r\n    .pipe($useref())\r\n    .pipe(gulp.dest('./dist/'));\r\n});\r\n````\r\n\r\nAfter this runs, the resulting JS file does not have the templates contents (only the contents of the JS files that are in my html file)."},"comment":{"url":"https://api.github.com/repos/jonkemp/gulp-useref/issues/comments/149290765","html_url":"https://github.com/jonkemp/gulp-useref/issues/139#issuecomment-149290765","issue_url":"https://api.github.com/repos/jonkemp/gulp-useref/issues/139","id":149290765,"user":{"login":"jonkemp","id":230683,"avatar_url":"https://avatars.githubusercontent.com/u/230683?v=3","gravatar_id":"","url":"https://api.github.com/users/jonkemp","html_url":"https://github.com/jonkemp","followers_url":"https://api.github.com/users/jonkemp/followers","following_url":"https://api.github.com/users/jonkemp/following{/other_user}","gists_url":"https://api.github.com/users/jonkemp/gists{/gist_id}","starred_url":"https://api.github.com/users/jonkemp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonkemp/subscriptions","organizations_url":"https://api.github.com/users/jonkemp/orgs","repos_url":"https://api.github.com/users/jonkemp/repos","events_url":"https://api.github.com/users/jonkemp/events{/privacy}","received_events_url":"https://api.github.com/users/jonkemp/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T17:33:10Z","updated_at":"2015-10-19T17:33:10Z","body":":+1: "}}