Skip to content

Commit

Permalink
fix: list of templates to compile
Browse files Browse the repository at this point in the history
if content paths had just one extension, it would have always defaulted extensions to look for to 'html'; made it impossible to look for both html and md templates to compile, for example
  • Loading branch information
cossssmin committed Nov 17, 2024
1 parent 0b4caab commit 9688ff9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ export default async (config = {}) => {
/**
* Create a list of templates to compile
*/
const extensions = outputExtensions.size > 1 ? `{${[...outputExtensions].join(',')}}` : 'html'
const extensions = outputExtensions.size > 1
? `{${[...outputExtensions].join(',')}}`
: [...outputExtensions][0] || 'html'

const templatesToCompile = await fg.glob(
path.join(
Expand Down

0 comments on commit 9688ff9

Please sign in to comment.