~fancycade/rebar3_tailwind

d6403213c2352be1565f40bc7c0b71cc0ea7fb6a — Harley Swick 9 months ago 0155632
Logging
1 files changed, 2 insertions(+), 0 deletions(-)

M src/rebar3_tailwind_prv.erl
M src/rebar3_tailwind_prv.erl => src/rebar3_tailwind_prv.erl +2 -0
@@ 54,10 54,12 @@ tailwind_compile() ->
	    {ok, I} -> I;
	    _ -> "priv/input.css"
	end,
    io:format("~p~n", [InputSrc]),
    OutputDst =
	case application:get_env(rebar3_tailwind, output) of
	    {ok, O} -> O;
	    _ -> "priv/output.css"
	end,
    io:format("~p~n", [OutputDst]),
    Cmd = io_lib:format("npx tailwindcss -i ~s -o ~s", [InputSrc, OutputDst]),
    os:cmd(Cmd).