Skip to content

Commit

Permalink
fix: default to latest Tailwind CSS v3.x (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbond authored Jan 23, 2025
1 parent 5c0e366 commit 81c9e6f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Tailwind CSS for Symfony!
=========================

.. caution::

This bundle does not yet support Tailwind CSS 4.0.

This bundle makes it easy to use `Tailwind CSS <https://tailwindcss.com/>`_ with
Symfony's `AssetMapper Component <https://symfony.com/doc/current/frontend/asset_mapper.html>`_
(no Node.js required!).
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/TailwindExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function getConfigTreeBuilder(): TreeBuilder
->end()
->scalarNode('binary_version')
->info('Tailwind CLI version to download - null means the latest version')
->defaultNull()
->defaultValue('v3.4.17')
->end()
->scalarNode('postcss_config_file')
->info('Path to PostCSS config file which is passed to the Tailwind CLI')
Expand Down
4 changes: 2 additions & 2 deletions tests/TailwindBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function testBuildProvidedInputFile(): void
__DIR__.'/fixtures/var/tailwind',
new ArrayAdapter(),
null,
null,
'v3.4.17',
__DIR__.'/fixtures/tailwind.config.js'
);
$process = $builder->runBuild(watch: false, poll: false, minify: true, inputFile: 'assets/styles/second.css');
Expand All @@ -115,7 +115,7 @@ public function testIntegrationWithPostcss(): void
__DIR__.'/fixtures/var/tailwind',
new ArrayAdapter(),
null,
null,
'v3.4.17',
__DIR__.'/fixtures/tailwind.config.js',
__DIR__.'/fixtures/postcss.config.js',
);
Expand Down

0 comments on commit 81c9e6f

Please sign in to comment.