Skip to content

Commit

Permalink
Fix Javascript syntax error on code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelmenta authored and stephenlacy committed Nov 23, 2016
1 parent f9d2369 commit 7fb0e16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ gulp.task('pass-object', function () {
// Use with gulp-data
gulp.task('gulp-data', function() {
gulp.src('./components/**/*.styl')
.pipe(data(function(){
.pipe(data(function(file){
return {
componentPath: '/' + (file.path.replace(file.base, '').replace(/\/[^\/]*$/, ''));
componentPath: '/' + (file.path.replace(file.base, '').replace(/\/[^\/]*$/, ''))
};
}))
.pipe(stylus())
Expand Down

0 comments on commit 7fb0e16

Please sign in to comment.