Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
chore: formating
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Oct 13, 2021
1 parent 6e408de commit 370d83f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/vite/src/utils.ts
Expand Up @@ -28,8 +28,10 @@ export function isDevCSS (file: string) {
return IS_DEV_CSS_RE.test(file)
}

export function rewriteDevCSS (file:string) {
if (file.endsWith('.css')) { return file }
export function rewriteDevCSS (file: string) {
if (file.endsWith('.css')) {
return file
}
if (file.includes('?')) {
return file + '&' + MOCK_CSS_SUFFIX
}
Expand Down

0 comments on commit 370d83f

Please sign in to comment.