Closed rwillmer closed 8 years ago
I think it would be really useful for the v3 documentation to show the difference between v2 and v3 usage. I'll do a Pull Request if you agree.
The v2.x documentation gives this usage example:
var gulp = require('gulp'),
useref = require('gulp-useref');
gulp.task('default', function () {
var assets = useref.assets();
return gulp.src('app/*.html')
.pipe(assets)
.pipe(assets.restore())
.pipe(useref())
.pipe(gulp.dest('dist'));
});
The v3.x documentation gives this:
var gulp = require('gulp'),
useref = require('gulp-useref');
gulp.task('default', function () {
return gulp.src('app/*.html')
.pipe(useref())
.pipe(gulp.dest('dist'));
});
Here's a link to the old API
Sure, I think v3 is pretty well documented, but if you would like to add something showing the difference between the two, I'll look at it.
@rwillmer thanks!
You get this error
TypeError: $.useref.assets is not a function