~fancycade/rebar3_tailwind

966f23c3bee62aabb913f10d0885d028e31d46d2 — Harley Swick 9 months ago 6e40c21
Log running and remove /dev/null pipe
1 files changed, 2 insertions(+), 1 deletions(-)

M src/rebar3_tailwind_prv.erl
M src/rebar3_tailwind_prv.erl => src/rebar3_tailwind_prv.erl +2 -1
@@ 27,6 27,7 @@ init(State) ->

-spec do(rebar_state:t()) -> {ok, rebar_state:t()} | {error, string()}.
do(State) ->
    rebar_api:info("Running tailwind...", []),
    Apps = case rebar_state:current_app(State) of
	       undefined ->
		   rebar_state:project_apps(State);


@@ 62,6 63,6 @@ tailwind_compile(Opts) ->
	    none -> "priv/output.css"
	end,
    io:format("~p~n", [OutputDst]),
    Cmd = io_lib:format("npx tailwindcss -i ~s -o ~s > /dev/null", [InputSrc, OutputDst]),
    Cmd = io_lib:format("npx tailwindcss -i ~s -o ~s", [InputSrc, OutputDst]),
    os:cmd(Cmd),
    ok.