analytics/config/ce.exs
ruslandoga 6c7f123d2c
Add better assets compression to CE (#4476)
* add better assets compression to ce

* changelog

* fix conditional compilation

* improve changelog message

* don't need zstd
2024-09-03 13:54:11 +02:00

18 lines
453 B
Elixir

import Config
import_config "prod.exs"
config :phoenix,
static_compressors: [
PhoenixBakery.Gzip,
PhoenixBakery.Brotli
]
config :esbuild,
default: [
args:
~w(js/app.js js/dashboard.tsx js/embed.host.js js/embed.content.js --bundle --target=es2017 --loader:.js=jsx --outdir=../priv/static/js --define:BUILD_EXTRA=false),
cd: Path.expand("../assets", __DIR__),
env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)}
]