Skip to content

Commit

Permalink
Update css.ts
Browse files Browse the repository at this point in the history
fix: some file are not generated while using @vitejs/plugin-legacy (fix vitejs#4358).
  • Loading branch information
hxdyj committed Aug 30, 2021
1 parent 96712ad commit 54ceaf1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/node/plugins/css.ts
Expand Up @@ -403,6 +403,7 @@ export function cssPostPlugin(config: ResolvedConfig): Plugin {
)
} else if (!config.build.ssr) {
// legacy build, inline css
pureCssChunks.delete(chunk.fileName)
chunkCSS = await processChunkCSS(chunkCSS, {
inlined: true,
minify: true
Expand Down

0 comments on commit 54ceaf1

Please sign in to comment.