Skip to content

Commit

Permalink
new event data for next version of silex
Browse files Browse the repository at this point in the history
  • Loading branch information
lexoyo committed Oct 9, 2024
1 parent b97cd8b commit a167d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/publication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function (config: ClientConfig, options: EleventyPluginOptions) {
// Generate 11ty data files
// FIXME: should this be in the publication transformers
editor.on('silex:publish:page', data => withNotification(() => transformPage(editor, data), editor, null))
editor.on('silex:publish:data', data => withNotification(() => transformFiles(editor, options, data), editor, null))
editor.on('silex:publish:data', ({ data/*, preventDefault, publicationManager */ }) => withNotification(() => transformFiles(editor, options, data), editor, null))
editor.on('silex:publish:end', () => cache.clear())
}
})
Expand Down

0 comments on commit a167d32

Please sign in to comment.