does not work with <!-- inject:js --> or <!-- inject:js -->
- Dominant language
- JavaScript
- Stars
- 700
- Forks
- 89
- PR merge metrics
- No merged PRs in 30d
Description
```
```
It works without inject:xx but not with
here's my code
gulp.task('optimize', ['inject'], function () {
```
var assets = $.useref.assets({ searchPath: './' });
var templateCache = config.temp + config.templateCache.file;
return gulp
.src(config.index)
.pipe($.plumber())
.pipe($.inject(gulp.src(templateCache, {
read: false,
starttag: ''
})))
.pipe(assets) // Gathers assets from html comments
.pipe(assets.restore()) // Restores the files to the stream. ex: index.html
.pipe($.useref()) // $.useref(): concatenates all files
.pipe(gulp.dest(config.dist));
```
});
Contributor guide
Assessment
This issue has not been assessed yet.