We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 822f173 commit 9ccdf87Copy full SHA for 9ccdf87
packages/@tailwindcss-vite/src/index.ts
@@ -419,7 +419,15 @@ export default function tailwindcss(): Plugin[] {
419
// by vite:css-post.
420
async renderStart() {
421
for (let [id, root] of roots.entries()) {
422
- let generated = await regenerateOptimizedCss(root, (file) => this.addWatchFile(file))
+ let generated = await regenerateOptimizedCss(
423
+ root,
424
+ // During the renderStart phase, we can not add watch files since
425
+ // those would not be causing a refresh of the right CSS file. This
426
+ // should not be an issue since we did already process the CSS file
427
+ // before and the dependencies should not be changed (only the
428
+ // candidate list might have)
429
+ () => {},
430
+ )
431
if (!generated) {
432
roots.delete(id)
433
continue
0 commit comments