res_tailwindcss icon indicating copy to clipboard operation
res_tailwindcss copied to clipboard

Read stanza reference for usage in OCaml project

Open mununki opened this issue 3 years ago • 0 comments

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)))

mununki avatar Jan 10 '22 08:01 mununki