live_beats/lib/live_beats/tailwind.ex
Chris McCord bbb9693e8c WIP
2021-12-16 11:06:22 -05:00

14 lines
297 B
Elixir

defmodule LiveBeats.Tailwind do
def run(args) do
opts = [
cd: IO.inspect(Path.join(File.cwd!(), "assets")),
into: IO.stream(:stdio, :line),
stderr_to_stdout: true
]
Path.expand("assets/tailwindcss-macos-x64")
|> System.cmd(args, opts)
|> elem(1)
end
end