Skip to content

Commit

Permalink
chore: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Aug 19, 2022
1 parent 28f938f commit fc40b7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/vite/src/node/plugins/css.ts
Expand Up @@ -559,9 +559,9 @@ export function cssPostPlugin(config: ResolvedConfig): Plugin {
} else if (!config.build.ssr) {
// legacy build and inline css

// simple build will collect all entry module css into chunk.viteMetadata.importedCss
// and inject into the `index.html` same with legacy
// legacy build should avoid insert the entry module css again
// the legacy build should avoid inserting entry CSS modules here, they
// will be collected into `chunk.viteMetadata.importedCss` and injected
// later by the `'vite:build-html'` plugin into the `index.html`
if (chunk.isEntry) {
return null
}
Expand Down

0 comments on commit fc40b7f

Please sign in to comment.