The CSS and JS are still not charged, with the changed path I have:
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /assets/css/app.css
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /assets/js/app.js
no, leave these entries as they are.
you could check the compiled app.css files will be generated in the case of some change in one of your views
the generated app.css is located in <project-root>/priv/static/assets/app.css
oh, that’s a tailwind issue or shortage, as I remember, in FreeBSD exists a linux compat. layer, does something exist in OpenBSD ?
maybe there is a workaround using the npm version of Tailwind css, you have to search the forum or tailwind site of using tailwind cli with OpenBSD
I was fighting with this recently and created an account to post this in case it helps those that find this thread as I did. I’m using Phoenix 1.7.14 and had issues with both tailwind and esbuild, and here are my workarounds:
Compile esbuild v. 0.17.11 and overwrite project version (depends on the ‘go’, ‘git’, and ‘gmake’ packages)
git clone GitHub - evanw/esbuild: An extremely fast bundler for the web
git checkout tags/v0.17.11
cd esbuild
gmake
cp esbuild {project}/_build/esbuild-openbsd-x64
doas pkg_add node
Install tailwindcss v. 3.4.3 and @tailwindcss/forms
npm install tailwindcss@3.4.3
npm install @tailwindcss/forms
Replace project _build/tailwind-linux-x64 with the following shell script
#!/bin/sh
exec npx tailwindcss $@
chmod u+x _build/tailwind-linux-x64
mix phx.server
If there are version warnings, then update the steps to correspond to the expected version.