jonkemp / jonkemp/gulp-useref

does not work with <!-- inject:js --> or <!-- inject:js -->

Open
#133 2 comments 0 reactions 1 assignee Claimed by @jonkemp View on GitHub
feature request
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.