Skip to content

Commit 81c9e6f

Browse files
authored
fix: default to latest Tailwind CSS v3.x (#83)
1 parent 5c0e366 commit 81c9e6f

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

doc/index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Tailwind CSS for Symfony!
22
=========================
33

4+
.. caution::
5+
6+
This bundle does not yet support Tailwind CSS 4.0.
7+
48
This bundle makes it easy to use `Tailwind CSS <https://tailwindcss.com/>`_ with
59
Symfony's `AssetMapper Component <https://symfony.com/doc/current/frontend/asset_mapper.html>`_
610
(no Node.js required!).

src/DependencyInjection/TailwindExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function getConfigTreeBuilder(): TreeBuilder
7070
->end()
7171
->scalarNode('binary_version')
7272
->info('Tailwind CLI version to download - null means the latest version')
73-
->defaultNull()
73+
->defaultValue('v3.4.17')
7474
->end()
7575
->scalarNode('postcss_config_file')
7676
->info('Path to PostCSS config file which is passed to the Tailwind CLI')

tests/TailwindBuilderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function testBuildProvidedInputFile(): void
9494
__DIR__.'/fixtures/var/tailwind',
9595
new ArrayAdapter(),
9696
null,
97-
null,
97+
'v3.4.17',
9898
__DIR__.'/fixtures/tailwind.config.js'
9999
);
100100
$process = $builder->runBuild(watch: false, poll: false, minify: true, inputFile: 'assets/styles/second.css');
@@ -115,7 +115,7 @@ public function testIntegrationWithPostcss(): void
115115
__DIR__.'/fixtures/var/tailwind',
116116
new ArrayAdapter(),
117117
null,
118-
null,
118+
'v3.4.17',
119119
__DIR__.'/fixtures/tailwind.config.js',
120120
__DIR__.'/fixtures/postcss.config.js',
121121
);

0 commit comments

Comments
 (0)