Question about Transforms and code comments #1967
-
On this page, https://www.11ty.dev/docs/config/#transforms-example-minify-html-output, the code looks like so:
Notice specifically: I'd like to know more about this. First (based on my discussion with @eleven_ty on Twitter) it sounds like we needed support for inputPath. That makes total sense to me! What I'm not understanding is why support for inputPath is via
So why are we using this.inputPath and this.outputPath instead? (From what I know the code sample will be updated to use that.) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think maybe this: #789; or more specifically #789 (comment):
Signatures from the current docs at https://www.11ty.dev/docs/config/#transforms eleventyConfig.addLinter("linter-name", function(content, inputPath, outputPath) {});
eleventyConfig.addTransform("transform-name", function(content, outputPath) {}); Also this comment further down in the thread #789 (comment):
I also found #1522 via the search. Not sure of the status of that and if it will change from |
Beta Was this translation helpful? Give feedback.
I think maybe this: #789; or more specifically #789 (comment):
Signatures from the current docs at https://www.11ty.dev/docs/config/#transforms
Also this comment further down in the thread #789 (comment):