Skip to content

Commit 3321dbb

Browse files
authored
Merge pull request #650 from d-zero-dev/fix/builder-output-path-extension
fix(builder): correct output path extension to .html in html plugin
2 parents 6d2c296 + b9154e1 commit 3321dbb

File tree

1 file changed

+4
-1
lines changed
  • packages/@d-zero/builder/src/eleventy-plugins

1 file changed

+4
-1
lines changed

packages/@d-zero/builder/src/eleventy-plugins/html.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ export const htmlPlugin: EleventyPlugin<HtmlPluginOptions, EleventyGlobalData> =
5252
const outputPath =
5353
'/' +
5454
path
55-
.relative(path.join(process.cwd(), eleventyConfig.dir.input), transferred)
55+
.relative(
56+
path.join(process.cwd(), eleventyConfig.dir.input),
57+
path.format({ ...path.parse(transferred), base: '', ext: '.html' }),
58+
)
5659
.replaceAll(path.sep, '/');
5760

5861
const imageSizesOptions = pluginConfig?.imageSizes ?? true;

0 commit comments

Comments
 (0)