Skip to content

Commit

Permalink
fix(ssr): do not inject inlined css in ssr build
Browse files Browse the repository at this point in the history
fix #1643
  • Loading branch information
yyx990803 committed Jan 22, 2021
1 parent b462e33 commit 5d77665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export function cssPostPlugin(config: ResolvedConfig): Plugin {
source: chunkCSS
})
chunkToEmittedCssFileMap.set(chunk, fileHandle)
} else {
} else if (!config.build.ssr) {
// legacy build, inline css
const style = `__vite_style__`
const injectCode =
Expand Down

0 comments on commit 5d77665

Please sign in to comment.