Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tailwind.ex custom path instructions #94

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions lib/tailwind.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ defmodule Tailwind do

## Tailwind configuration

There are two global configurations for the tailwind application:
There are three global configurations for the tailwind application:

* `:version` - the expected tailwind version

Expand All @@ -46,14 +46,13 @@ defmodule Tailwind do

On Unix, the executable will be at:

NPM_ROOT/tailwind/node_modules/tailwind-TARGET/bin/tailwind
NPM_PREFIX/bin/tailwind

On Windows, it will be at:

NPM_ROOT/tailwind/node_modules/tailwind-windows-(32|64)/tailwind.exe
NPM_PREFIX\tailwind.(cmd|ps1)

Where `NPM_ROOT` is the result of `npm root -g` and `TARGET` is your system
target architecture.
Where `NPM_PREFIX` is the result of `npm prefix -g`.

Once you find the location of the executable, you can store it in a
`MIX_TAILWIND_PATH` environment variable, which you can then read in
Expand Down