I need to add leaningen project
my-compojure/src/dist/output.css
from tailwind to my compojure project. Where should I put it?
After starting the server, I am naively calling
localhost:3000/dist/output.css
But that does not work.
Does anybody know, how I can add these static files in compojure?
You need to serve the static files from your server. When using Leiningen you can place the file in the resources/public folder in the root. Ensure the
project.cljpoints to the resource folder with:resource-paths ["resources"]. Then serve the resources folder using Compojure:See Serve static resources using Clojure's Ring for a more elaborate example.