Skip to content

Commit

Permalink
Update PugAsset.js (#1396)
Browse files Browse the repository at this point in the history
  • Loading branch information
buckle2000 authored and devongovett committed May 20, 2018
1 parent 2243797 commit 63e714c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/parcel-bundler/src/assets/PugAsset.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class PugAsset extends Asset {
}
}

return compiled();
return compiled(config.locals);
}
}

Expand Down

1 comment on commit 63e714c

@tremendus
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What exactly is the config obj passed to the PugAsset class and how does one attach locals to it? I can't find examples of documentation, appreciate some insight here. Thanks.

Please sign in to comment.