feat: rework of the full CSS machine to tailwind and modular CSS
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -27,6 +27,31 @@ config :bds, BDS.Desktop.Endpoint,
|
||||
pubsub_server: BDS.PubSub,
|
||||
live_view: [signing_salt: "desktop-live-view"]
|
||||
|
||||
config :tailwind,
|
||||
version: "4.1.14",
|
||||
default: [
|
||||
cd: Path.expand("..", __DIR__),
|
||||
args: ~w(
|
||||
--input=assets/css/app.css
|
||||
--output=priv/static/assets/app.css
|
||||
)
|
||||
]
|
||||
|
||||
config :esbuild,
|
||||
version: "0.25.4",
|
||||
default: [
|
||||
cd: Path.expand("../assets", __DIR__),
|
||||
args: ~w(
|
||||
js/app.js
|
||||
--bundle
|
||||
--target=es2022
|
||||
--outdir=../priv/static/assets
|
||||
--external:/fonts/*
|
||||
--external:/images/*
|
||||
),
|
||||
env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)}
|
||||
]
|
||||
|
||||
config :bds, :scripting,
|
||||
runtime: BDS.Scripting.Lua,
|
||||
timeout: 300_000,
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
import Config
|
||||
|
||||
config :bds, BDS.Repo, pool_size: 5
|
||||
|
||||
config :bds, BDS.Desktop.Endpoint,
|
||||
watchers: [
|
||||
tailwind: {Tailwind, :install_and_run, [:default, ~w(--watch)]},
|
||||
esbuild: {Esbuild, :install_and_run, [:default, ~w(--watch)]}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user