Skip to content

Commit

Permalink
Tau - move esbuild/tailwind config to dev
Browse files Browse the repository at this point in the history
  • Loading branch information
samaaron committed Dec 1, 2022
1 parent 12404e5 commit 5ede1a5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
23 changes: 0 additions & 23 deletions app/server/beam/tau/config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,6 @@ config :tau, TauWeb.Endpoint,
pubsub_server: Tau.PubSub,
live_view: [signing_salt: "Zr1UgcpP"]

# Configure esbuild (the version is required)
config :esbuild,
version: "0.14.25",
default: [
args:
~w(js/app.js --bundle --target=es2017 --outdir=../priv/static/assets --external:/fonts/* --external:/images/*),
cd: Path.expand("../assets", __DIR__),
env: %{"NODE_PATH" => System.get_env("MIX_DEPS_PATH") || Path.expand("../deps", __DIR__)}
],
path: System.get_env("MIX_ESBUILD_PATH")

# Configures Elixir's Logger
config :logger, :console,
format: "$time $metadata[$level] $message\n",
Expand All @@ -35,18 +24,6 @@ config :phoenix, :json_library, Jason

config :petal_components, :error_translator_function, {PetalBoilerplateWeb.ErrorHelpers, :translate_error}

config :tailwind,
version: "3.0.23",
default: [
args: ~w(
--config=tailwind.config.js
--input=css/app.css
--output=../priv/static/assets/app.css
),
cd: Path.expand("../assets", __DIR__)
],
path: System.get_env("MIX_TAILWINDCSS_PATH")

# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{config_env()}.exs"
23 changes: 23 additions & 0 deletions app/server/beam/tau/config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,26 @@ config :phoenix, :stacktrace_depth, 20

# Initialize plugs at runtime for faster development compilation
config :phoenix, :plug_init_mode, :runtime

# Configure esbuild (the version is required)
config :esbuild,
version: "0.15.10",
default: [
args:
~w(js/app.js --bundle --target=es2017 --outdir=../priv/static/assets --external:/fonts/* --external:/images/*),
cd: Path.expand("../assets", __DIR__),
env: %{"NODE_PATH" => System.get_env("MIX_DEPS_PATH") || Path.expand("../deps", __DIR__)}
],
path: System.get_env("MIX_ESBUILD_PATH")

config :tailwind,
version: "3.1.8",
default: [
args: ~w(
--config=tailwind.config.js
--input=css/app.css
--output=../priv/static/assets/app.css
),
cd: Path.expand("../assets", __DIR__)
],
path: System.get_env("MIX_TAILWINDCSS_PATH")

0 comments on commit 5ede1a5

Please sign in to comment.