ashaffer/gulp-inline — pull request #9 by pdonald (2014-11-14 13:16:46+00:00)
Title: Callback isn't called when a file doesn't exist

If `path.join(base, opts.getSrc(el))` doesn't exist, `cb()` is never called.

```js
gulp.src(path.join(base, opts.getSrc(el)))
.pipe(process)
.pipe(replace(el, opts.template))
.pipe(through.obj(function(file, enc, cb) {
cb();
}, done));
```

Example

```html

```

```js
gulp.src('path')
.pipe(inline({ base: 'theme/', css: cssmin() }))
.pipe(inline({ base: 'node_modules/', css: cssmin() }))
```

Fixed it by checking if it exists.