Skip to content

Commit

Permalink
Merge 6291b2d into 3e77dfb
Browse files Browse the repository at this point in the history
  • Loading branch information
my-cereal committed Jan 11, 2016
2 parents 3e77dfb + 6291b2d commit 4e8a0ad
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,29 +237,33 @@ or

For a simple configuration, you can replace this V2 code:

var gulp = require('gulp'),
useref = require('gulp-useref');
```javascript
var gulp = require('gulp'),
useref = require('gulp-useref');

gulp.task('default', function () {
var assets = useref.assets();
gulp.task('default', function () {
var assets = useref.assets();

return gulp.src('app/*.html')
.pipe(assets)
.pipe(assets.restore())
.pipe(useref())
.pipe(gulp.dest('dist'));
});
return gulp.src('app/*.html')
.pipe(assets)
.pipe(assets.restore())
.pipe(useref())
.pipe(gulp.dest('dist'));
});
```

with this V3 code:

var gulp = require('gulp'),
useref = require('gulp-useref');
```javascript
var gulp = require('gulp'),
useref = require('gulp-useref');

gulp.task('default', function () {
return gulp.src('app/*.html')
.pipe(useref())
.pipe(gulp.dest('dist'));
});
gulp.task('default', function () {
return gulp.src('app/*.html')
.pipe(useref())
.pipe(gulp.dest('dist'));
});
```

If you were previously using useref in a multi-stage pipe,
you may need to rewrite the pipe, since the simplified V3 API
Expand Down

0 comments on commit 4e8a0ad

Please sign in to comment.