{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/gulp-rev/issues/81","labels_url":"https://api.github.com/repos/sindresorhus/gulp-rev/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/gulp-rev/issues/81/comments","events_url":"https://api.github.com/repos/sindresorhus/gulp-rev/issues/81/events","html_url":"https://github.com/sindresorhus/gulp-rev/issues/81","id":54760894,"number":81,"title":"Rev'd file is written but the manifest isn't updated while watching","user":{"login":"LarsFe","id":7568852,"avatar_url":"https://avatars.githubusercontent.com/u/7568852?v=3","gravatar_id":"","url":"https://api.github.com/users/LarsFe","html_url":"https://github.com/LarsFe","followers_url":"https://api.github.com/users/LarsFe/followers","following_url":"https://api.github.com/users/LarsFe/following{/other_user}","gists_url":"https://api.github.com/users/LarsFe/gists{/gist_id}","starred_url":"https://api.github.com/users/LarsFe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LarsFe/subscriptions","organizations_url":"https://api.github.com/users/LarsFe/orgs","repos_url":"https://api.github.com/users/LarsFe/repos","events_url":"https://api.github.com/users/LarsFe/events{/privacy}","received_events_url":"https://api.github.com/users/LarsFe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-19T13:00:37Z","updated_at":"2015-11-03T23:06:40Z","closed_at":"2015-11-03T23:06:40Z","body":"Hello,\r\nI have a problem while running a watch-task. The following is my task to build images and their manifest:\r\n\r\n```Javascript\r\n\r\nassetLinkups = './app/config';\r\n\r\ngulp.task('images', function(done) {\r\n    runSequence('build-single-images', 'manifest-images', function() {\r\n        return done();\r\n    });\r\n});\r\n\r\ngulp.task('build-single-images', function() {\r\n    var stream = gulp.src(appFiles.images)\r\n        .pipe($.imagemin({ optimizationLevel: 7, progressive: true, interlaced: true }))\r\n        .pipe(gulp.dest(paths.images.destTemp));\r\n\r\n    return stream;\r\n});\r\n\r\ngulp.task('manifest-images', function() {\r\n    var stream = gulp.src([paths.images.destTemp + '/**/*.{png,jpg,jpeg,gif,svg,ico}'])\r\n        .pipe(rev())\r\n        .pipe(gulp.dest(paths.images.dest))\r\n        .pipe($.size({ showFiles: true }))\r\n        .pipe(rev.manifest('assets-linkup-images.json'))\r\n        .pipe(gulp.dest(assetLinkups));\r\n\r\n    return stream;\r\n});\r\n```\r\n\r\nAnd this is my watch-task:\r\n\r\n```Javascript\r\ngulp.task('watch', ['default'], function() {\r\n    // watch images\r\n    $.watch([ FILES TO WATCH FOR ])\r\n        .pipe($.imagemin({ optimizationLevel: 7, progressive: true, interlaced: true }))\r\n        .pipe(gulp.dest(paths.images.destTemp))\r\n        .pipe(rev())\r\n        .pipe(gulp.dest(paths.images.dest))\r\n        .pipe($.size({ showFiles: true }))\r\n        .pipe(rev.manifest('assets-linkup-images.json', { base: assetLinkups, merge: true }))\r\n        .pipe(gulp.dest(assetLinkups));\r\n});\r\n```\r\n\r\nSo, when I start watching, first all images are built. After that I add a new image to a watched path. The image will be added and it gets a hash, but the key-value-pair isn't written to the manifest file.\r\n\r\nIs there an error in the above code?\r\n\r\nGreetings,\r\nLars"},"comment":{"url":"https://api.github.com/repos/sindresorhus/gulp-rev/issues/comments/153517282","html_url":"https://github.com/sindresorhus/gulp-rev/issues/81#issuecomment-153517282","issue_url":"https://api.github.com/repos/sindresorhus/gulp-rev/issues/81","id":153517282,"user":{"login":"torifat","id":208544,"avatar_url":"https://avatars.githubusercontent.com/u/208544?v=3","gravatar_id":"","url":"https://api.github.com/users/torifat","html_url":"https://github.com/torifat","followers_url":"https://api.github.com/users/torifat/followers","following_url":"https://api.github.com/users/torifat/following{/other_user}","gists_url":"https://api.github.com/users/torifat/gists{/gist_id}","starred_url":"https://api.github.com/users/torifat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torifat/subscriptions","organizations_url":"https://api.github.com/users/torifat/orgs","repos_url":"https://api.github.com/users/torifat/repos","events_url":"https://api.github.com/users/torifat/events{/privacy}","received_events_url":"https://api.github.com/users/torifat/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T23:06:39Z","updated_at":"2015-11-03T23:06:39Z","body":"@LarsFe Please reopen the issue if you want to discuss."}}