Skip to content

Commit

Permalink
fix(vite): warn when unocss:global:build:bundle has no CSS placehol…
Browse files Browse the repository at this point in the history
…der (#3802)
  • Loading branch information
Simon-He95 committed May 16, 2024
1 parent 882cc69 commit 210a22b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/src/modes/global/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ export function GlobalModeBuildPlugin(ctx: UnocssPluginContext<VitePluginConfig>
msg += '\nIt seems you are building in library mode, it\'s recommended to set `build.cssCodeSplit` to true.\nSee https://github.com/vitejs/vite/issues/1579'
else
msg += '\nThis is likely an internal bug of unocss vite plugin'
this.error(msg)
// #3748 Because some files may not contain unocss syntax, and then an error will be reported.
this.warn(msg)
}
},
},
Expand Down

0 comments on commit 210a22b

Please sign in to comment.