Skip to content

Commit bd701c3

Browse files
authored
Merge pull request #108 from ld-web/v4-no-config
Specify config file only if not v4
2 parents 380502c + a0c5fc8 commit bd701c3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/TailwindBuilder.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ public function runBuild(
6161
throw new \InvalidArgumentException('The --poll option is not supported in Tailwind CSS v4.0.0 and later.');
6262
}
6363

64-
$arguments = ['-c', $this->configPath, '-i', $inputPath, '-o', $this->getInternalOutputCssPath($inputPath)];
64+
$arguments = ['-i', $inputPath, '-o', $this->getInternalOutputCssPath($inputPath)];
65+
66+
if (!$binary->isV4()) {
67+
$arguments = ['-c', $this->configPath, ...$arguments];
68+
}
6569
if ($watch) {
6670
$arguments[] = '--watch';
6771
if ($poll) {

0 commit comments

Comments
 (0)