Skip to content

Commit

Permalink
docs: Updated the documentation to explain how binary downloading works.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrow committed Jan 30, 2025
1 parent 7b3ad37 commit f1328e0
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -233,16 +233,25 @@ To instruct the bundle to use that binary instead, set the ``binary`` option:
Using a Different Binary Version
------------------------

By default, the latest standalone Tailwind binary gets downloaded. However,
if you want to use a different version, you can specify the version to use,
set ``binary_version`` option:
By default, when you run ``php bin/console tailwind:build``, the bundle will check
to see if it's already downloaded a version of tailwind. If it hasn't, the
latest standalone Tailwind binary will be downloaded. If it has, the latest
version it can find in your ``./var/tailwind`` directory will be used. In order to
update to a new version, delete your ``./var/tailwind`` directory before running
``tailwind:build``.

If instead you want to use only a specific version of tailwind, you can set the
``binary_version`` option:

.. code-block:: yaml
# config/packages/symfonycasts_tailwind.yaml
symfonycasts_tailwind:
binary_version: 'v3.3.0'
This will ignore any other versions you have installed, and only use the
specified version.

Using a PostCSS config file
------------------------

Expand Down

0 comments on commit f1328e0

Please sign in to comment.