Skip to content

Commit

Permalink
style: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
frandiox committed Oct 5, 2022
1 parent 12918f6 commit 80e4f7c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/build/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ export default async function preview({

if (vitePkg.version.startsWith('3')) {
// Vite 3.x does not expose utilities
console.log(chalk.bold(chalk.white('➜ Local: ')), chalk.cyan(`${protocol}://localhost:${port}/`));
}
else if (printHttpServerUrls) {
console.log(
chalk.bold(chalk.white('➜ Local: ')),
chalk.cyan(`${protocol}://localhost:${port}/`)
)
} else if (printHttpServerUrls) {
// Vite 2.6.x exposes this function
printHttpServerUrls(
{
Expand All @@ -108,8 +110,8 @@ export default async function preview({

mf.log.log(
'\n -- Preview mode' +
(buildWatch ? '. Waiting for updates' : '') +
'\n'
(buildWatch ? '. Waiting for updates' : '') +
'\n'
)
})
})
Expand Down

0 comments on commit 80e4f7c

Please sign in to comment.