Skip to content

Commit

Permalink
fix: Lint/format
Browse files Browse the repository at this point in the history
  • Loading branch information
Clay Smith committed Nov 22, 2022
1 parent e9fa0d9 commit 771a668
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/vite/src/node/preview.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import path, { resolve } from 'node:path'
import path from 'node:path'
import type * as http from 'node:http'
import fs from 'node:fs'
import sirv from 'sirv'
Expand Down Expand Up @@ -131,7 +131,10 @@ export async function preview(
return assetServer(req, res, next)
} else if (spaFallback) {
try {
const indexHtml = fs.readFileSync(path.resolve(distDir, 'index.html'), 'utf-8')
const indexHtml = fs.readFileSync(
path.resolve(distDir, 'index.html'),
'utf-8'
)
res.write(indexHtml)
res.end()
} catch {}
Expand Down

0 comments on commit 771a668

Please sign in to comment.