Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Nothing yet!
### Fixed

- Ensure there is always CLI feedback on save even when no new classes were found ([#14351](https://github.com/tailwindlabs/tailwindcss/pull/14351))

## [4.0.0-alpha.23] - 2024-09-05

Expand Down
10 changes: 7 additions & 3 deletions packages/@tailwindcss-cli/src/commands/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,13 @@ export async function handle(args: Result<ReturnType<typeof options>>) {
else if (rebuildStrategy === 'incremental') {
let newCandidates = scanner.scanFiles(changedFiles)

// No candidates found which means we don't need to rebuild. This can
// happen if a file is detected but doesn't match any of the globs.
if (newCandidates.length <= 0) return
// No new candidates found which means we don't need to write to
// disk, and can return early.
if (newCandidates.length <= 0) {
let end = process.hrtime.bigint()
eprintln(`Done in ${formatDuration(end - start)}`)
return
}

compiledCss = compiler.build(newCandidates)
}
Expand Down