jonkemp / gulp-useref

Parse build blocks in HTML files to replace references to non-optimized scripts or stylesheets.
MIT License
705 stars 93 forks source link

Error in README.md for "Transform Streams" #166

Closed akrawitz closed 8 years ago

akrawitz commented 8 years ago

The code example to integrate source maps has an error in it. The line:

.pipe(useref({}, lazypipe().pipe(sourcemaps.init, { loadMaps: true })()))

should be:

.pipe(useref({}, lazypipe().pipe(sourcemaps.init, { loadMaps: true })))

Notice that the lazypipe is passed as a function, not invoked. Thanks!

jonkemp commented 8 years ago

Fixed. Thanks for letting me know!

https://github.com/jonkemp/gulp-useref/commit/3e77dfbb89a070b62ed8f7a3ed169f07209b1b2a#diff-04c6e90faac2675aa89e2176d2eec7d8