@11ty/eleventy-plugin-webc 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -38,6 +38,11 @@ module.exports = function(eleventyConfig, options = {}) {
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
+
let templateConfig;
|
|
42
|
+
eleventyConfig.on("eleventy.config", (cfg) => {
|
|
43
|
+
templateConfig = cfg;
|
|
44
|
+
});
|
|
45
|
+
|
|
41
46
|
// Deprecated (backwards compat only): this lives in @11ty/eleventy-plugin-bundle now
|
|
42
47
|
if(options.filters.css) {
|
|
43
48
|
eleventyConfig.addFilter(options.filters.css, (url, bucket) => {
|
|
@@ -105,7 +110,7 @@ module.exports = function(eleventyConfig, options = {}) {
|
|
|
105
110
|
let syntax = this["11ty:type"];
|
|
106
111
|
if(syntax) {
|
|
107
112
|
let fn = await CompileString(content, syntax, {
|
|
108
|
-
templateConfig
|
|
113
|
+
templateConfig
|
|
109
114
|
});
|
|
110
115
|
return fn(this);
|
|
111
116
|
}
|