Skip to content

Commit 28e592b

Browse files
committed
Tweaks the manifest filename
1 parent 2ee285d commit 28e592b

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

config/tailwindcss.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
'build' => [
1515
'source_file_path' => resource_path('css/app.css'),
1616
'destination_file_path' => public_path('dist/css/app.css'),
17-
'manifest_file_path' => public_path('tailwindcss/manifest.json'),
17+
'manifest_file_path' => public_path('.tailwindcss-manifest.json'),
1818
],
1919

2020
/*

src/Commands/BuildCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public function handle()
3434
$generatedFile = config('tailwindcss.build.destination_file_path');
3535
$generatedFileRelativePath = Str::after($generatedFile, rtrim(public_path(), '/'));
3636

37-
File::ensureDirectoryExists(dirname(Manifest::path()));
3837
File::ensureDirectoryExists(dirname($generatedFile));
3938
File::cleanDirectory(dirname($generatedFile));
4039

@@ -64,7 +63,7 @@ public function handle()
6463
}
6564

6665
if (! $this->option('watch') && $this->shouldVersion()) {
67-
$this->info('Generating the versioned tailwindcss-manifest.json file...');
66+
$this->info(sprintf('Generating the versioned %s file...', Manifest::filename()));
6867

6968
File::put(Manifest::path(), json_encode([
7069
'/css/app.css' => Str::after($generatedFile, rtrim(dirname(Manifest::path()), '/')),

src/Manifest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88

99
class Manifest
1010
{
11+
public static function filename(): string
12+
{
13+
return basename(self::path());
14+
}
15+
1116
public static function path(): string
1217
{
1318
return config('tailwindcss.build.manifest_file_path');

0 commit comments

Comments
 (0)