Skip to content

Commit

Permalink
Merge pull request #456 from paulRbr/live-preview
Browse files Browse the repository at this point in the history
preview: send a first preview after exectution of the command
  • Loading branch information
paulRbr authored May 4, 2023
2 parents 154f702 + 83d33fc commit bc0db07
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/commands/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ export default class Preview extends Command {
async run(): Promise<void> {
const { args, flags } = this.parse(Preview);

await this.preview(args.FILE, flags.open);
if (flags.live) {
await this.waitForChanges(args.FILE, flags.open);
} else {
await this.preview(args.FILE, flags.open);
}

return;
Expand Down

0 comments on commit bc0db07

Please sign in to comment.