Skip to content

Commit 05ba44a

Browse files
committed
remove callback from example
1 parent e8aea6e commit 05ba44a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/transpile-css/index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ builder.build(function(err, res){
2222
// could make this async if you wanted
2323

2424
function styl(builder) {
25-
builder.hook('before styles', function(pkg, fn){
25+
builder.hook('before styles', function(pkg){
2626
var styles = pkg.config.styl;
2727
if (!styles) return;
2828

@@ -35,7 +35,5 @@ function styl(builder) {
3535
css = '\n// file: ' + file + '\n\n' + css;
3636
pkg.addFile('styles', file, css);
3737
});
38-
39-
fn();
4038
});
4139
}

0 commit comments

Comments
 (0)