Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Commit 457a141

Browse files
committed
fix fresh context build
1 parent 4d2a25f commit 457a141

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/expandTailwindAtRules.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,12 @@ function expandTailwindAtRules(context, registerDependency) {
164164
let prevModified = sharedState.fileModifiedCache.get(file) ?? -Infinity
165165
let modified = fs.statSync(file).mtimeMs
166166

167-
if (modified > prevModified) {
167+
if (!context.scannedContent || modified > prevModified) {
168168
context.changedFiles.add(file)
169169
sharedState.fileModifiedCache.set(file, modified)
170170
}
171171
}
172+
context.scannedContent = true
172173
env.DEBUG && console.timeEnd('Finding changed files')
173174

174175
// ---

0 commit comments

Comments
 (0)