mix tailwind.install (tailwind v0.5.1)

Copy Markdown View Source

Installs Tailwind executable and assets.

Usage:

$ mix tailwind.install TASK_OPTIONS BASE_URL

Example:

$ mix tailwind.install
$ mix tailwind.install --if-missing

By default, it installs 4.3.0 but you can configure it in your config files, such as:

config :tailwind, :version, "4.3.0"

To install the Tailwind binary from a custom URL (e.g. if your platform isn't officially supported by Tailwind), you can supply a third party path to the binary (beware that we cannot guarantee the compatibility of any third party executable):

$ mix tailwind.install https://people.freebsd.org/~dch/pub/tailwind/$version/tailwindcss-$target

Options

  • --runtime-config - load the runtime configuration before executing command

  • --if-missing - install only if the given version does not exist