~fancycade/rebar3_tailwind

5d708e80890112647f7561d351acb3e3288f4123 — Harley Swick 9 months ago 6683734
Update README
1 files changed, 14 insertions(+), 3 deletions(-)

M README.md
M README.md => README.md +14 -3
@@ 14,13 14,24 @@ Use
Add the plugin to your rebar config:

    {plugins, [
        {rebar3_tailwind, {git, "https://host/user/rebar3_tailwind.git", {tag, "0.1.0"}}}
        {rebar3_tailwind, {git, "https://host/user/rebar3_tailwind.git", {branch, "main"}}}
    ]}.

Then just call your plugin directly in an existing application:
Set options:

    {tailwind_opts, [{input, "./apps/hello_world/priv/input.css"},
      		     {output, "./_build/default/lib/hello_world/priv/static/assets/output.css"}]}.

    $ rebar3 rebar3_tailwind
Set the pre compile provider hook:

    {provider_hooks, [
                     {pre, [{compile, {tailwind, compile}}
    		           ]}
                     ]}.

Then just compile your project:

    $ rebar3 compile
    ===> Fetching rebar3_tailwind
    ===> Compiling rebar3_tailwind
    <Plugin Output>