Skip to content

Commit

Permalink
Write preview file to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
PKief committed Nov 12, 2023
1 parent e1ed9a6 commit f5ab72c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/generate-preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export const generatePreview = async (fileNames: string[]) => {

try {
await createScreenshot(previewHtmlPath, 'preview');

// write generate preview html file
writeFileSync(previewHtmlPath, previewTemplate);

console.log(
'> Material Icon Theme:',
green(`Successfully created preview image!`)
Expand Down

0 comments on commit f5ab72c

Please sign in to comment.