Skip to content

Commit

Permalink
feat: differentiate plugin log from vite log (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald authored Jul 8, 2024
1 parent ef79261 commit 943016d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default (paths: string | string[], config: Config = {}): PluginOption =>
if (shouldReload(path)) {
setTimeout(() => ws.send({ type: 'full-reload', path: always ? '*' : path }), delay)
if (log)
logger.info(`${colors.green('page reload')} ${colors.dim(relative(root, path))}`, { clear: true, timestamp: true })
logger.info(`${colors.green('full reload')} ${colors.dim(relative(root, path))}`, { clear: true, timestamp: true })
}
}

Expand Down

0 comments on commit 943016d

Please sign in to comment.