This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch package for the small change in the github version
- Loading branch information
Showing
3 changed files
with
106 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/node_modules/metalsmith-in-place/lib/index.js b/node_modules/metalsmith-in-place/lib/index.js | ||
index 4c0092a..1340556 100644 | ||
--- a/node_modules/metalsmith-in-place/lib/index.js | ||
+++ b/node_modules/metalsmith-in-place/lib/index.js | ||
@@ -24,7 +24,7 @@ module.exports = plugin; | ||
* | ||
* Options supported by metalsmith-in-place | ||
*/ | ||
-var settings = ['engine', 'partials', 'pattern', 'rename']; | ||
+var settings = ['engine', 'partials', 'pattern', 'rename', 'exposeConsolidate']; | ||
|
||
/** | ||
* Metalsmith plugin for in-place templating. | ||
@@ -57,6 +57,10 @@ function plugin(opts){ | ||
throw new Error('Unknown template engine: "' + opts.engine + '"'); | ||
} | ||
|
||
+ if (typeof opts.exposeConsolidate === 'function') { | ||
+ opts.exposeConsolidate(consolidate.requires); | ||
+ } | ||
+ | ||
// Map options to local variables | ||
var engine = opts.engine; | ||
var partials = opts.partials; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters