Hi there,
I am trying to migrate a mid-size project from Phoenix 1.5.13
to 1.6.6
. The Phoenix/LiveView part went smoothly, but after two days I can’t get my asset pipeline to work:
-
tailwind
andesbuild
seem to cancel one another: I can have the “tailwind CSS” working or the “esbuild CSS” working, but not both ; -
It seems I can’t import external CSS files (
font-awesome
,flatpickr
, etc.) from a CSS file managed bytailwind
; -
Also, a lot of other assets (images, etc.) are not compiled anymore.
So I have a few questions for the community:
-
Should I remove
import css from "../css/app.css";
from myapp.js
? (some answers say yes, others say no) -
Why do I have to move my static assets from
assets/static
topriv/static
? -
In what dir should I put my external CSS? Do the
import
fromapp.css
still work? -
In
config.exs
, shouldesbuild default --minify
come first, ortailwind default --minify
? If it doesn’t matter because there are two separate pipelines, does it even mean I have two different CSS files to import (one frompriv/static/assets
, the other frompriv/static/css
? -
Do I have to keep npm/yarn to manage my JS dependencies?
-
Do I need to keep using
postcss
? -
In
app.css
, should I use the@import "tailwindcss/base";
syntax, or the@tailwind base;
one?
I have been navigating issues, PR and elixirforum answers for a while, so any help on any of the above questions would be greatly appreciated