res_tailwindcss
res_tailwindcss copied to clipboard
Read stanza reference for usage in OCaml project
Regarding the usage in the OCaml project. It needs to know where the tailwind CSS file is. (In the ReScript project, the path of the tailwind CSS file is passed in command line args.)
In the OCaml project, the best way is getting the path from dune file as inline_tests ppx does such as below.
(library
(res_tailwindcss
(deps
"src/styles/tailwind.css"))
(name example)
(public_name example)
(libraries core str)
(preprocess
(pps res_tailwindcss)))