Skip to content

Commit c9a6efe

Browse files
fix: missing styles with build watch (#3742) (#3887)
1 parent 5999444 commit c9a6efe

File tree

1 file changed

+1
-0
lines changed
  • packages/vite/src/node/plugins

1 file changed

+1
-0
lines changed

packages/vite/src/node/plugins/css.ts

+1
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ export function cssPostPlugin(config: ResolvedConfig): Plugin {
239239
// Ensure new caches for every build (i.e. rebuilding in watch mode)
240240
pureCssChunks = new Set<string>()
241241
outputToExtractedCSSMap = new Map<NormalizedOutputOptions, string>()
242+
hasEmitted = false
242243
},
243244

244245
transform(css, id, ssr) {

0 commit comments

Comments
 (0)